Fiddle with CSS+HTML in effort to get more consistent buttons
[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>
49e57291 66 <span class=button>
bf9df44a 67 <button class=login name=button type=submit>
343d9c2b 68 @label{login.login}
fdf98378 69 </button>
49e57291 70 </span>
fdf98378 71 </td>
72 </tr>
73 </table>
bf9df44a 74 <input name=action type=hidden value=login>
343d9c2b 75 <input name=back type=hidden value="@argq{back}">
fdf98378 76 </form>
77
6207d2f3 78 <p>If you've forgotten your password, use this form to request an
79 email reminder. A reminder can only be sent if you registered with
80 your email address, and if a reminder has been sent too recently
81 then it won't be possible to send one.</p>
82
343d9c2b 83 <form class=reminder action="@url" method=POST
6207d2f3 84 enctype="multipart/form-data" accept-charset=utf-8>
85 <table class=login>
86 <tr>
343d9c2b 87 <td>@label{login.username}</td>
6207d2f3 88 <td>
89 <input class=username name=username type=text size=32
343d9c2b 90 value="@argq{username}">
6207d2f3 91 </td>
92 </tr>
93 <tr>
94 <td colspan=2>
49e57291 95 <span class=button>
6207d2f3 96 <button class=login name=button type=submit>
49e57291
RK
97 @label{login.reminder}
98 </span>
99 </button>
6207d2f3 100 </td>
101 </tr>
102 </table>
103 <input name=action type=hidden value=reminder>
6207d2f3 104 </form>
105
d2777468 106 @right{register}{
fdf98378 107 <h2>New Users</h2>
108
109 <p>If you do not have a login enter a username, a password and your
110 email address here. You will be sent an email containing a URL,
111 which you must visit to activate your login before you can use
112 it.<p>
113
343d9c2b 114 <form class=register action="@url" method=POST
fdf98378 115 enctype="multipart/form-data" accept-charset=utf-8>
116 <table class=register>
117 <tr>
343d9c2b 118 <td>@label{login.username}</td>
fdf98378 119 <td>
968f044a 120 <input class=username name=username type=text size=32
121 value="">
fdf98378 122 </td>
343d9c2b 123 <td class=extra>@label{login.registerusernameextra}</td>
fdf98378 124 </tr>
125 <tr>
343d9c2b 126 <td>@label{login.email}</td>
fdf98378 127 <td>
968f044a 128 <input class=email name=email type=text size=32
129 value="">
fdf98378 130 </td>
343d9c2b 131 <td class=extra>@label{login.registeremailextra}</td>
968f044a 132 </tr>
133 <tr>
343d9c2b 134 <td>@label{login.password1}</td>
968f044a 135 <td>
136 <input class=password name=password1 type=password size=32
137 value="">
138 </td>
343d9c2b 139 <td class=extra>@label{login.registerpassword1extra}</td>
968f044a 140 </tr>
141 <tr>
343d9c2b 142 <td>@label{login.password2}</td>
968f044a 143 <td>
144 <input class=password name=password2 type=password size=32
145 value="">
146 </td>
343d9c2b 147 <td class=extra>@label{login.registerpassword2extra}</td>
fdf98378 148 </tr>
149 <tr>
6207d2f3 150 <td colspan=3>
49e57291
RK
151 <span class=button>
152 <button class=register name=button type=submit>
343d9c2b 153 @label{login.register}
49e57291
RK
154 </button>
155 </span>
fdf98378 156 </td>
157 </tr>
158 </table>
bf9df44a 159 <input name=action type=hidden value=register>
343d9c2b
RK
160 </form>}
161 }{@# not the guest user, allow change of details and logout
fdf98378 162
343d9c2b 163 <h2>Logged in as @user</h2>
fdf98378 164
343d9c2b 165 <form class=logout action="@url" method=POST
968f044a 166 enctype="multipart/form-data" accept-charset=utf-8>
167 <div class=logout>
49e57291
RK
168 <span class=button>
169 <button class=logout name=submit type=submit>
343d9c2b 170 @label{login.logout}
49e57291
RK
171 </button>
172 </span>
968f044a 173 </div>
bf9df44a 174 <input name=action type=hidden value=logout>
968f044a 175 </form>
fdf98378 176
177 <p>Use this form to change your email address and/or password.</p>
178
343d9c2b 179 <form class=edituser action="@url" method=POST
fdf98378 180 enctype="multipart/form-data" accept-charset=utf-8>
181 <table class=edituser>
182 <tr>
343d9c2b 183 <td>@label{login.email}</td>
fdf98378 184 <td>
968f044a 185 <input class=email name=email type=text size=32
343d9c2b 186 value="@userinfo{email}">
fdf98378 187 </td>
343d9c2b 188 <td class=extra>@label{login.edituseremailextra}</td>
968f044a 189 </tr>
190 <tr>
343d9c2b 191 <td>@label{login.newpassword}</td>
968f044a 192 <td>
193 <input class=password name=changepassword1 type=password size=32
194 value="">
195 </td>
343d9c2b 196 <td class=extra>@label{login.edituserpassword1extra}</td>
968f044a 197 </tr>
198 <tr>
343d9c2b 199 <td>@label{login.newpassword}</td>
968f044a 200 <td>
201 <input class=password name=changepassword2 type=password size=32
202 value="">
203 </td>
343d9c2b 204 <td class=extra>@label{login.edituserpassword2extra}</td>
fdf98378 205 </tr>
206 <tr>
6207d2f3 207 <td colspan=3>
49e57291 208 <span class=button>
bf9df44a 209 <button class=edituser name=submit type=submit>
49e57291 210 @label{login.edituser}
fdf98378 211 </button>
49e57291 212 </span>
fdf98378 213 </td>
214 </tr>
215 </table>
bf9df44a 216 <input name=action type=hidden value=edituser>
fdf98378 217 </form>
218
343d9c2b 219 }
fdf98378 220
0d0253c9 221@credits
fdf98378 222 </body>
223</html>
0d0253c9 224@discard{
fdf98378 225Local variables:
226mode:sgml
227sgml-always-quote-attributes:nil
228sgml-indent-step:1
229sgml-indent-data:t
0d0253c9
RK
230indent-tabs-mode:nil
231fill-column:79
fdf98378 232End:
0d0253c9 233}@#