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