1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
3 This file is part of DisOrder.
4 Copyright (C) 2007 Richard Kettlewell
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 <title>@label:login.title@</title>
28 <h1 class=title>@label:login.title@</h1>
30 @if{@ne{@label:error@}{error}@}{
31 @#{error reporting from some earlier operation}@
32 <!-- TODO make error string visually intrusive, also error.html -->
33 <p class=error>@label{error.@label:error@}@</p>
36 @if{@ne{@label:status@}{status}@}{
37 @#{some action succeeded}@
38 <p class=loginstatus>@label{login.@label:status@}@</p>
41 @if{@eq{@user@}{guest}@}{
42 @#{guest user, allow login and registration}@
43 <h2>Existing users</h2>
45 <p>If you have a username, use this form to log in.</p>
47 <form class=login action="@url@" method=POST
48 enctype="multipart/form-data" accept-charset=utf-8>
51 <td>@label:login.username@</td>
53 <input class=username name=username type=text value="@arg:username@" size=32>
57 <td>@label:login.password@</td>
58 <td><input class=password name=password type=password value=""
61 <button class=login name=action type=submit value=login>
67 <input name=nonce type=hidden value="@nonce@">
68 <input name=back type=hidden value="@arg:back@">
71 <!-- TODO disable registration button if guest doesn't have
76 <p>If you do not have a login enter a username, a password and your
77 email address here. You will be sent an email containing a URL,
78 which you must visit to activate your login before you can use
81 <form class=register action="@url@" method=POST
82 enctype="multipart/form-data" accept-charset=utf-8>
83 <table class=register>
85 <td>@label:login.username@</td>
87 <input class=username name=username type=text value="" size=32>
91 <td>@label:login.email@</td>
93 <input class=email name=email type=text value="" size=32>
97 <td>@label:login.password@</td>
98 <td><input class=password name=password type=password value=""
101 <button class=register name=action type=submit value=register>
102 @label:login.register@
107 <input name=nonce type=hidden value="@nonce@">
110 @#{not the guest user, allow change of details and logout}@
112 <h2>Logged in as @user@</h2>
114 <p>TODO none of this stuff works yet</p>
116 <p>Use this form to change your email address and/or password.</p>
118 <form class=edituser action="@url@" method=POST
119 enctype="multipart/form-data" accept-charset=utf-8>
120 <table class=edituser>
122 <td>@label:login.email@</td>
124 <input class=email name=email type=text value="TODO" size=32>
128 <td>@label:login.password@</td>
129 <td><input class=password name=password type=password value=""
132 <button class=edituser name=action type=submit value=edituser>
133 @label:login.edituser@
138 <input name=nonce type=hidden value="@nonce@">
141 <p>Use this button to log out @user@.</p>
143 <form class=logout action="@url@" method=POST
144 enctype="multipart/form-data" accept-charset=utf-8>
146 <button class=logout name=action type=submit value=logout>
150 <input name=nonce type=hidden value="@nonce@">
162 sgml-always-quote-attributes:nil