chiark / gitweb /
Reject libdb <=4.2
[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>
fdf98378 68 <td>
69 <button class=login name=action type=submit value=login>
70 @label:login.login@
71 </button>
72 </td>
73 </tr>
74 </table>
75 <input name=nonce type=hidden value="@nonce@">
76 <input name=back type=hidden value="@arg:back@">
77 </form>
78
d2777468 79 @right{register}{
fdf98378 80 <h2>New Users</h2>
81
82 <p>If you do not have a login enter a username, a password and your
83 email address here. You will be sent an email containing a URL,
84 which you must visit to activate your login before you can use
85 it.<p>
86
87 <form class=register action="@url@" method=POST
88 enctype="multipart/form-data" accept-charset=utf-8>
89 <table class=register>
90 <tr>
91 <td>@label:login.username@</td>
92 <td>
968f044a 93 <input class=username name=username type=text size=32
94 value="">
fdf98378 95 </td>
968f044a 96 <td class=extra>@label:login.registerusernameextra@</td>
fdf98378 97 </tr>
98 <tr>
99 <td>@label:login.email@</td>
100 <td>
968f044a 101 <input class=email name=email type=text size=32
102 value="">
fdf98378 103 </td>
968f044a 104 <td class=extra>@label:login.registeremailextra@</td>
105 </tr>
106 <tr>
107 <td>@label:login.password1@</td>
108 <td>
109 <input class=password name=password1 type=password size=32
110 value="">
111 </td>
112 <td class=extra>@label:login.registerpassword1extra@</td>
113 </tr>
114 <tr>
115 <td>@label:login.password2@</td>
116 <td>
117 <input class=password name=password2 type=password size=32
118 value="">
119 </td>
120 <td class=extra>@label:login.registerpassword2extra@</td>
fdf98378 121 </tr>
122 <tr>
fdf98378 123 <td>
124 <button class=register name=action type=submit value=register>
ac152d06 125 @label:login.register@
fdf98378 126 </button>
127 </td>
128 </tr>
129 </table>
130 <input name=nonce type=hidden value="@nonce@">
d2777468 131 </form>}@
fdf98378 132 }{
133 @#{not the guest user, allow change of details and logout}@
134
135 <h2>Logged in as @user@</h2>
136
968f044a 137 <form class=logout action="@url@" method=POST
138 enctype="multipart/form-data" accept-charset=utf-8>
139 <div class=logout>
140 <button class=logout name=action type=submit value=logout>
141 @label:login.logout@
142 </button>
143 </div>
144 <input name=nonce type=hidden value="@nonce@">
145 </form>
fdf98378 146
147 <p>Use this form to change your email address and/or password.</p>
148
f230d1d6 149 <form class=edituser action="@url@" method=POST
fdf98378 150 enctype="multipart/form-data" accept-charset=utf-8>
151 <table class=edituser>
152 <tr>
153 <td>@label:login.email@</td>
154 <td>
968f044a 155 <input class=email name=email type=text size=32
156 value="@userinfo:email@">
fdf98378 157 </td>
968f044a 158 <td class=extra>@label:login.edituseremailextra@</td>
159 </tr>
160 <tr>
161 <td>@label:login.newpassword@</td>
162 <td>
163 <input class=password name=changepassword1 type=password size=32
164 value="">
165 </td>
166 <td class=extra>@label:login.edituserpassword1extra@</td>
167 </tr>
168 <tr>
169 <td>@label:login.newpassword@</td>
170 <td>
171 <input class=password name=changepassword2 type=password size=32
172 value="">
173 </td>
174 <td class=extra>@label:login.edituserpassword2extra@</td>
fdf98378 175 </tr>
176 <tr>
fdf98378 177 <td>
178 <button class=edituser name=action type=submit value=edituser>
179 @label:login.edituser@
180 </button>
181 </td>
182 </tr>
183 </table>
184 <input name=nonce type=hidden value="@nonce@">
185 </form>
186
fdf98378 187 }@
188
e12da4d9 189@include{topbarend}@
fdf98378 190 </body>
191</html>
192@@
193<!--
194Local variables:
195mode:sgml
196sgml-always-quote-attributes:nil
197sgml-indent-step:1
198sgml-indent-data:t
199End:
200-->