Mercurial > agora
comparison templates/registration/login.html @ 24:2e7226e90157
Many fixes. See detailed description.
- Style errors
- Writer proper 404 and 500 templates
- Make login page redirect back to page being viewed (still buggy?)
- Provide a brief blurb about Agora
- Use tables for registration and login forms (need to be styled)
- Fix typos, grammatical errors.
- Don't use .djhtml extension for some templates
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Mon, 28 Jun 2010 03:00:01 -0500 |
parents | d9658d30b814 |
children | e019ca8e14f6 |
comparison
equal
deleted
inserted
replaced
23:d9658d30b814 | 24:2e7226e90157 |
---|---|
1 {% extends "controls.djhtml" %} | 1 {% extends "controls.djhtml" %} |
2 | 2 |
3 {% block content %} | 3 {% block content %} |
4 <div id="info"> | 4 <div id="info"> |
5 | |
5 <h3> | 6 <h3> |
6 Login | 7 Login |
7 </h3> | 8 </h3> |
8 <div class="whitebox"> | 9 <div class="whitebox"> |
9 {% if user.is_authenticated %} | 10 {% if user.is_authenticated %} |
15 (<a href="{% url auth_logout %}">logout</a>) | 16 (<a href="{% url auth_logout %}">logout</a>) |
16 </p> | 17 </p> |
17 | 18 |
18 {% else %} | 19 {% else %} |
19 | 20 |
20 {% if form.errors %} | |
21 <p>{{form.errors}}</p> | |
22 {% endif %} | |
23 <form method="post" action="."> | 21 <form method="post" action="."> |
24 {% csrf_token %} | 22 {% csrf_token %} |
25 <p> | 23 <table> |
26 <label for="id_username">Username:</label> | 24 {{form.as_table}} |
27 <br/> | 25 </table> |
28 <input id="id_username" type="text" name="username" maxlength="30" /> | |
29 </p> | |
30 <p> | |
31 <label for="id_password">Password:</label> | |
32 <br/> | |
33 <input type="password" name="password" id="id_password" /> | |
34 </p> | |
35 <input type="submit" value="Log in" /> | 26 <input type="submit" value="Log in" /> |
36 <input type="hidden" name="next" value="{{ next }}" /> | 27 <input type="hidden" name="next" value="{{ next }}" /> |
37 </form> | 28 </form> |
38 | 29 |
39 <p> | 30 <p> |
40 Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>! | 31 Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>! |
41 </p> | 32 </p> |
42 <p> | 33 <p> |
43 Not member? <a href="{% url registration_register %}">Register</a>! | 34 No login name? <a href="{% url registration_register %}">Register</a>! |
44 </p> | 35 </p> |
45 {% endif %} | 36 {% endif %} |
46 | 37 |
47 | 38 |
48 </div> | 39 </div> |