Mercurial > agora
comparison templates/registration/login.html @ 27:e019ca8e14f6
Clean up templates
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Mon, 28 Jun 2010 22:36:53 -0500 |
parents | 2e7226e90157 |
children | 00ecf3f4ce04 |
comparison
equal
deleted
inserted
replaced
26:d534172de5d5 | 27:e019ca8e14f6 |
---|---|
1 {% extends "controls.djhtml" %} | 1 {% extends "whitebox.djhtml" %} |
2 | 2 |
3 {% block content %} | 3 {% block boxtitle %} |
4 <div id="info"> | 4 Login |
5 {% endblock %} | |
5 | 6 |
6 <h3> | 7 {% block boxcontents %} |
7 Login | 8 {% if user.is_authenticated %} |
8 </h3> | 9 <p> |
9 <div class="whitebox"> | 10 You're already logged in as |
10 {% if user.is_authenticated %} | 11 <a href="{{ user.username }}">{{user.username}}</a>. |
11 <p> | 12 </p> |
12 You're already logged in as | 13 <p> |
13 <a href="{{ user.username }}">{{user.username}}</a>. | 14 (<a href="{% url auth_logout %}">logout</a>) |
14 </p> | 15 </p> |
15 <p> | |
16 (<a href="{% url auth_logout %}">logout</a>) | |
17 </p> | |
18 | 16 |
19 {% else %} | 17 {% else %} |
20 | 18 |
21 <form method="post" action="."> | 19 <form method="post" action="."> |
22 {% csrf_token %} | 20 {% csrf_token %} |
23 <table> | 21 <table> |
24 {{form.as_table}} | 22 {{form.as_table}} |
25 </table> | 23 </table> |
26 <input type="submit" value="Log in" /> | 24 <input type="submit" value="Log in" /> |
27 <input type="hidden" name="next" value="{{ next }}" /> | 25 <input type="hidden" name="next" value="{{ next }}" /> |
28 </form> | 26 </form> |
29 | 27 |
30 <p> | 28 <p> |
31 Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>! | 29 Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>! |
32 </p> | 30 </p> |
33 <p> | 31 <p> |
34 No login name? <a href="{% url registration_register %}">Register</a>! | 32 No login name? <a href="{% url registration_register %}">Register</a>! |
35 </p> | 33 </p> |
36 {% endif %} | 34 {% endif %} |
37 | |
38 | |
39 </div> | |
40 </div> | |
41 {% endblock %} | 35 {% endblock %} |