Mercurial > genshi > genshi-test
comparison examples/turbogears/markuptest/templates/login.html @ 4:f8612f05af99
Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
author | cmlenz |
---|---|
date | Sat, 03 Jun 2006 12:31:58 +0000 |
parents | |
children | 33c2702cf6da |
comparison
equal
deleted
inserted
replaced
3:e86dcec16d55 | 4:f8612f05af99 |
---|---|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml" | |
4 xmlns:py="http://purl.org/kid/ns#" | |
5 xmlns:xi="http://www.w3.org/2001/XInclude"> | |
6 | |
7 <xi:include href="master.html" /> | |
8 | |
9 <head> | |
10 <meta content="text/html; charset=UTF-8" | |
11 http-equiv="content-type" py:replace="''"/> | |
12 <title>Login</title> | |
13 <style type="text/css"> | |
14 #loginBox | |
15 { | |
16 width: 30%; | |
17 margin: auto; | |
18 margin-top: 10%; | |
19 padding-left: 10%; | |
20 padding-right: 10%; | |
21 padding-top: 5%; | |
22 padding-bottom: 5%; | |
23 font-family: verdana; | |
24 font-size: 10px; | |
25 background-color: #eee; | |
26 border: 2px solid #ccc; | |
27 } | |
28 | |
29 #loginBox h1 | |
30 { | |
31 font-size: 42px; | |
32 font-family: "Trebuchet MS"; | |
33 margin: 0; | |
34 color: #ddd; | |
35 } | |
36 | |
37 #loginBox p | |
38 { | |
39 position: relative; | |
40 top: -1.5em; | |
41 padding-left: 4em; | |
42 font-size: 12px; | |
43 margin: 0; | |
44 color: #666; | |
45 } | |
46 | |
47 #loginBox table | |
48 { | |
49 table-layout: fixed; | |
50 border-spacing: 0; | |
51 width: 100%; | |
52 } | |
53 | |
54 #loginBox td.label | |
55 { | |
56 width: 33%; | |
57 text-align: right; | |
58 } | |
59 | |
60 #loginBox td.field | |
61 { | |
62 width: 66%; | |
63 } | |
64 | |
65 #loginBox td.field input | |
66 { | |
67 width: 100%; | |
68 } | |
69 | |
70 #loginBox td.buttons | |
71 { | |
72 text-align: right; | |
73 } | |
74 | |
75 </style> | |
76 </head> | |
77 | |
78 <body> | |
79 <div id="loginBox"> | |
80 <h1>Login</h1> | |
81 <p>$message</p> | |
82 <form action="$previous_url" method="POST"> | |
83 <table> | |
84 <tr> | |
85 <td class="label"> | |
86 <label for="user_name">User Name:</label> | |
87 </td> | |
88 <td class="field"> | |
89 <input type="text" id="user_name" name="user_name"/> | |
90 </td> | |
91 </tr> | |
92 <tr> | |
93 <td class="label"> | |
94 <label for="password">Password:</label> | |
95 </td> | |
96 <td class="field"> | |
97 <input type="password" id="password" name="password"/> | |
98 </td> | |
99 </tr> | |
100 <tr> | |
101 <td colspan="2" class="buttons"> | |
102 <input type="submit" name="login" value="Login"/> | |
103 </td> | |
104 </tr> | |
105 </table> | |
106 | |
107 <input py:if="forward_url" type="hidden" name="forward_url" | |
108 value="$forward_url"/> | |
109 | |
110 <input py:for="name,value in original_parameters.items()" | |
111 type="hidden" name="$name" value="$value"/> | |
112 </form> | |
113 </div> | |
114 </body> | |
115 </html> |