annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
1 {% extends "controls.djhtml" %}
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
2
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
3 {% block content %}
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
4 <div id="info">
24
2e7226e90157 Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 23
diff changeset
5
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
6 <h3>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
7 Login
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
8 </h3>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
9 <div class="whitebox">
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
10 {% if user.is_authenticated %}
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
11 <p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
12 You're already logged in as
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
13 <a href="{{ user.username }}">{{user.username}}</a>.
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
14 </p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
15 <p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
16 (<a href="{% url auth_logout %}">logout</a>)
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
17 </p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
18
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
19 {% else %}
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
20
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
21 <form method="post" action=".">
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
22 {% csrf_token %}
24
2e7226e90157 Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 23
diff changeset
23 <table>
2e7226e90157 Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 23
diff changeset
24 {{form.as_table}}
2e7226e90157 Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 23
diff changeset
25 </table>
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
26 <input type="submit" value="Log in" />
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
27 <input type="hidden" name="next" value="{{ next }}" />
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
28 </form>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
29
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
30 <p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
31 Forgot password? <a href="{% url auth_password_reset %}">Reset it</a>!
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
32 </p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
33 <p>
24
2e7226e90157 Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents: 23
diff changeset
34 No login name? <a href="{% url registration_register %}">Register</a>!
23
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
35 </p>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
36 {% endif %}
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
37
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
38
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
39 </div>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
40 </div>
d9658d30b814 Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff changeset
41 {% endblock %}