url syntax migrated to D1.5
[daarmaan:daarmaan.git] / daarmaaninterface / templates / index.html
1 {% extends "base.html" %}
2 {% load i18n %}
3
4 {% block title %}
5 {{ block.super }} | {% trans 'Login' %}
6 {% endblock %}
7
8
9 {% block pagetitle %}
10 {% endblock %}
11
12
13
14 {% block content %}
15 {{ regform.media }}
16 <section id="content">
17
18   <div class="loginbox">
19     <div id="loginform">
20       <h2 align="center">Yellowen Login</h2>
21       <p class="msg {{ msgclass }}" align="center">{{ msg }}</p>
22
23       <form action="{% url "home" %}" method="POST">{% csrf_token %}
24
25         <table id="logintable">
26           <tr>
27             <td><label>{% trans 'username' %}:</label></td><td><input type="text" maxlength="32" value="lxsameer" name="username" id="id_username"></td>
28           </tr>
29           <tr>
30             <td><label>{% trans 'password' %}:</label></td><td> <input type="password" maxlength="64" name="password" id="id_password"></td>
31           </tr>
32           <tr id="submitrow">
33             <td><input type="submit" value="{% trans 'login' %}" class="button middle" name="submit" ></td><td><input type="checkbox" id="id_remember_me" name="remember_me"><span id="remember">Remember me</span></td>
34           </tr>
35         </table>
36         <input type="hidden" value="login" name="form">
37         <input type="hidden" value="{{ next }}" name="next">
38       </form>
39     </div>
40
41
42
43     <div id="registerform">
44       <h2 align="center">Register an account</h2>
45       <p class="msg {{ msgclass }}" align="center">{{ msg }}</p>
46       <form action="{% url "home" %}" method="POST">{% csrf_token %}
47         <table id="logintable">
48           {% for field in regform %}
49           <tr>
50             <td><label>{{ field.label }}:</label></td><td>{{ field }}<p class="msg error">{{ field.error }}</p></td>
51           </tr>
52           {% endfor %}
53         </table>
54         <input type="hidden" value="register" name="form">
55         <p align="center"><input type="submit" value="{% trans 'Register' %}" class="button middle" name="submit" ></p>
56
57       </form>
58     </div>
59
60   </div>
61
62
63 <div id="tabs">
64 <div id="logintab" class="tab selectedtab">
65   Login
66 </div>
67 <div id="registertab" class="tab unselected">
68   Register
69 </div>
70 </div>
71 </section>
72
73 {% endblock %}