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