chiark / gitweb /
Limit how long tests/play.py will wait
[disorder] / templates / login.html
CommitLineData
fdf98378 1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2<!--
3This file is part of DisOrder.
4Copyright (C) 2007 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@include:stdhead@
24 <title>@label:login.title@</title>
25 </head>
26 <body>
e12da4d9 27@include{topbar}@
fdf98378 28 <h1 class=title>@label:login.title@</h1>
29
30 @if{@ne{@label:error@}{error}@}{
31 @#{error reporting from some earlier operation}@
328248ba 32 <div class=error>
33 <p class=error>@label{error.@label:error@}@</p>
34 </div>
fdf98378 35 }@
36
ac152d06 37 @if{@ne{@label:status@}{status}@}{
38 @#{some action succeeded}@
328248ba 39 <div class=loginstatus>
40 <p class=loginstatus>@label{login.@label:status@}@</p>
41 </div>
fdf98378 42 }@
43
44 @if{@eq{@user@}{guest}@}{
45 @#{guest user, allow login and registration}@
46 <h2>Existing users</h2>
47
48 <p>If you have a username, use this form to log in.</p>
49
50 <form class=login action="@url@" method=POST
51 enctype="multipart/form-data" accept-charset=utf-8>
52 <table class=login>
53 <tr>
54 <td>@label:login.username@</td>
55 <td>
968f044a 56 <input class=username name=username type=text size=32
57 value="@arg:username@">
fdf98378 58 </td>
59 </tr>
60 <tr>
61 <td>@label:login.password@</td>
968f044a 62 <td>
63 <input class=password name=password type=password value=""
64 size=32>
65 </td>
66 </tr>
67 <tr>
6207d2f3 68 <td colspan=2>
bf9df44a 69 <button class=login name=button type=submit>
fdf98378 70 @label:login.login@
71 </button>
72 </td>
73 </tr>
74 </table>
bf9df44a 75 <input name=action type=hidden value=login>
fdf98378 76 <input name=nonce type=hidden value="@nonce@">
77 <input name=back type=hidden value="@arg:back@">
78 </form>
79
6207d2f3 80 <p>If you've forgotten your password, use this form to request an
81 email reminder. A reminder can only be sent if you registered with
82 your email address, and if a reminder has been sent too recently
83 then it won't be possible to send one.</p>
84
85 <form class=reminder action="@url@" method=POST
86 enctype="multipart/form-data" accept-charset=utf-8>
87 <table class=login>
88 <tr>
89 <td>@label:login.username@</td>
90 <td>
91 <input class=username name=username type=text size=32
92 value="@arg:username@">
93 </td>
94 </tr>
95 <tr>
96 <td colspan=2>
97 <button class=login name=button type=submit>
98 @label:login.reminder@
99 </button>
100 </td>
101 </tr>
102 </table>
103 <input name=action type=hidden value=reminder>
104 <input name=nonce type=hidden value="@nonce@">
105 </form>
106
d2777468 107 @right{register}{
fdf98378 108 <h2>New Users</h2>
109
110 <p>If you do not have a login enter a username, a password and your
111 email address here. You will be sent an email containing a URL,
112 which you must visit to activate your login before you can use
113 it.<p>
114
115 <form class=register action="@url@" method=POST
116 enctype="multipart/form-data" accept-charset=utf-8>
117 <table class=register>
118 <tr>
119 <td>@label:login.username@</td>
120 <td>
968f044a 121 <input class=username name=username type=text size=32
122 value="">
fdf98378 123 </td>
968f044a 124 <td class=extra>@label:login.registerusernameextra@</td>
fdf98378 125 </tr>
126 <tr>
127 <td>@label:login.email@</td>
128 <td>
968f044a 129 <input class=email name=email type=text size=32
130 value="">
fdf98378 131 </td>
968f044a 132 <td class=extra>@label:login.registeremailextra@</td>
133 </tr>
134 <tr>
135 <td>@label:login.password1@</td>
136 <td>
137 <input class=password name=password1 type=password size=32
138 value="">
139 </td>
140 <td class=extra>@label:login.registerpassword1extra@</td>
141 </tr>
142 <tr>
143 <td>@label:login.password2@</td>
144 <td>
145 <input class=password name=password2 type=password size=32
146 value="">
147 </td>
148 <td class=extra>@label:login.registerpassword2extra@</td>
fdf98378 149 </tr>
150 <tr>
6207d2f3 151 <td colspan=3>
bf9df44a 152 <button class=register name=button>
ac152d06 153 @label:login.register@
fdf98378 154 </button>
155 </td>
156 </tr>
157 </table>
bf9df44a 158 <input name=action type=hidden value=register>
fdf98378 159 <input name=nonce type=hidden value="@nonce@">
d2777468 160 </form>}@
fdf98378 161 }{
162 @#{not the guest user, allow change of details and logout}@
163
164 <h2>Logged in as @user@</h2>
165
968f044a 166 <form class=logout action="@url@" method=POST
167 enctype="multipart/form-data" accept-charset=utf-8>
168 <div class=logout>
bf9df44a 169 <button class=logout name=submit type=submit>
968f044a 170 @label:login.logout@
171 </button>
172 </div>
bf9df44a 173 <input name=action type=hidden value=logout>
968f044a 174 <input name=nonce type=hidden value="@nonce@">
175 </form>
fdf98378 176
177 <p>Use this form to change your email address and/or password.</p>
178
f230d1d6 179 <form class=edituser action="@url@" method=POST
fdf98378 180 enctype="multipart/form-data" accept-charset=utf-8>
181 <table class=edituser>
182 <tr>
183 <td>@label:login.email@</td>
184 <td>
968f044a 185 <input class=email name=email type=text size=32
186 value="@userinfo:email@">
fdf98378 187 </td>
968f044a 188 <td class=extra>@label:login.edituseremailextra@</td>
189 </tr>
190 <tr>
191 <td>@label:login.newpassword@</td>
192 <td>
193 <input class=password name=changepassword1 type=password size=32
194 value="">
195 </td>
196 <td class=extra>@label:login.edituserpassword1extra@</td>
197 </tr>
198 <tr>
199 <td>@label:login.newpassword@</td>
200 <td>
201 <input class=password name=changepassword2 type=password size=32
202 value="">
203 </td>
204 <td class=extra>@label:login.edituserpassword2extra@</td>
fdf98378 205 </tr>
206 <tr>
6207d2f3 207 <td colspan=3>
bf9df44a 208 <button class=edituser name=submit type=submit>
fdf98378 209 @label:login.edituser@
210 </button>
211 </td>
212 </tr>
213 </table>
bf9df44a 214 <input name=action type=hidden value=edituser>
fdf98378 215 <input name=nonce type=hidden value="@nonce@">
216 </form>
217
fdf98378 218 }@
219
e12da4d9 220@include{topbarend}@
fdf98378 221 </body>
222</html>
223@@
224<!--
225Local variables:
226mode:sgml
227sgml-always-quote-attributes:nil
228sgml-indent-step:1
229sgml-indent-data:t
230End:
231-->