chiark / gitweb /
Style button as well. Consistent in IE and FF, a bit off in Safari.
[disorder] / templates / login.tmpl
... / ...
CommitLineData
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2<!--
3This file is part of DisOrder.
4Copyright (C) 2007, 2008 Richard Kettlewell
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19USA
20-->
21<html>
22 <head>
23@stdhead{login}
24 </head>
25 <body>
26@stdmenu{login}
27 <h1>@label{login.title}</h1>
28
29@if{@ne{@error}{}}
30 {@# Error reporting from some earlier operation
31 <div class=error>
32 <p class=error>@label{error.@error}</p>
33 </div>}
34
35@if{@ne{@status}{}}
36 {@# Some action succeeded
37 <div class=loginstatus>
38 <p>@label{login.@status}</p>
39 </div>}
40
41@if{@eq{@user}{guest}}
42 {@# Guest user, allow login and registration
43 <h2>Existing users</h2>
44
45 <p>If you have a username, use this form to log in.</p>
46
47 <form class=login action="@url" method=POST
48 enctype="multipart/form-data" accept-charset=utf-8>
49 <table class=login>
50 <tr>
51 <td>@label{login.username}</td>
52 <td>
53 <input class=username name=username type=text size=32
54 value="@argq{username}">
55 </td>
56 </tr>
57 <tr>
58 <td>@label{login.password}</td>
59 <td>
60 <input class=password name=password type=password value=""
61 size=32>
62 </td>
63 </tr>
64 <tr>
65 <td colspan=2>
66 @submit{@label{login.login}}
67 </td>
68 </tr>
69 </table>
70 <input name=action type=hidden value=login>
71 <input name=back type=hidden value="@argq{back}">
72 </form>
73
74 <p>If you've forgotten your password, use this form to request an
75 email reminder. A reminder can only be sent if you registered with
76 your email address, and if a reminder has been sent too recently
77 then it won't be possible to send one.</p>
78
79 <form class=reminder action="@url" method=POST
80 enctype="multipart/form-data" accept-charset=utf-8>
81 <table class=login>
82 <tr>
83 <td>@label{login.username}</td>
84 <td>
85 <input class=username name=username type=text size=32
86 value="@argq{username}">
87 </td>
88 </tr>
89 <tr>
90 <td colspan=2>
91 @submit{@label{login.reminder}}
92 </td>
93 </tr>
94 </table>
95 <input name=action type=hidden value=reminder>
96 </form>
97
98 @right{register}{
99 <h2>New Users</h2>
100
101 <p>If you do not have a login enter a username, a password and your
102 email address here. You will be sent an email containing a URL,
103 which you must visit to activate your login before you can use
104 it.<p>
105
106 <form class=register action="@url" method=POST
107 enctype="multipart/form-data" accept-charset=utf-8>
108 <table class=register>
109 <tr>
110 <td>@label{login.username}</td>
111 <td>
112 <input class=username name=username type=text size=32
113 value="">
114 </td>
115 <td class=extra>@label{login.registerusernameextra}</td>
116 </tr>
117 <tr>
118 <td>@label{login.email}</td>
119 <td>
120 <input class=email name=email type=text size=32
121 value="">
122 </td>
123 <td class=extra>@label{login.registeremailextra}</td>
124 </tr>
125 <tr>
126 <td>@label{login.password1}</td>
127 <td>
128 <input class=password name=password1 type=password size=32
129 value="">
130 </td>
131 <td class=extra>@label{login.registerpassword1extra}</td>
132 </tr>
133 <tr>
134 <td>@label{login.password2}</td>
135 <td>
136 <input class=password name=password2 type=password size=32
137 value="">
138 </td>
139 <td class=extra>@label{login.registerpassword2extra}</td>
140 </tr>
141 <tr>
142 <td colspan=3>
143 @submit{@label{login.register}}
144 </td>
145 </tr>
146 </table>
147 <input name=action type=hidden value=register>
148 </form>}
149 }{@# not the guest user, allow change of details and logout
150
151 <h2>Logged in as @user</h2>
152
153 <form class=logout action="@url" method=POST
154 enctype="multipart/form-data" accept-charset=utf-8>
155 <div class=logout>
156 @submit{@label{login.logout}}
157 </div>
158 <input name=action type=hidden value=logout>
159 </form>
160
161 <p>Use this form to change your email address and/or password.</p>
162
163 <form class=edituser action="@url" method=POST
164 enctype="multipart/form-data" accept-charset=utf-8>
165 <table class=edituser>
166 <tr>
167 <td>@label{login.email}</td>
168 <td>
169 <input class=email name=email type=text size=32
170 value="@userinfo{email}">
171 </td>
172 <td class=extra>@label{login.edituseremailextra}</td>
173 </tr>
174 <tr>
175 <td>@label{login.newpassword}</td>
176 <td>
177 <input class=password name=changepassword1 type=password size=32
178 value="">
179 </td>
180 <td class=extra>@label{login.edituserpassword1extra}</td>
181 </tr>
182 <tr>
183 <td>@label{login.newpassword}</td>
184 <td>
185 <input class=password name=changepassword2 type=password size=32
186 value="">
187 </td>
188 <td class=extra>@label{login.edituserpassword2extra}</td>
189 </tr>
190 <tr>
191 <td colspan=3>
192 @submit{@label{login.edituser}}
193 </td>
194 </tr>
195 </table>
196 <input name=action type=hidden value=edituser>
197 </form>
198
199 }
200
201@credits
202 </body>
203</html>
204@discard{
205Local variables:
206mode:sgml
207sgml-always-quote-attributes:nil
208sgml-indent-step:1
209sgml-indent-data:t
210indent-tabs-mode:nil
211fill-column:79
212End:
213}@#