Mercurial > agora
annotate templates/controls.djhtml @ 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 |
rev | line source |
---|---|
18
8059d39dc6ef
Remove the welcome message, add missing template
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
1 {% extends "base.djhtml" %} |
8059d39dc6ef
Remove the welcome message, add missing template
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
2 |
8059d39dc6ef
Remove the welcome message, add missing template
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
3 {% block content-related %} |
23
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
4 <div id="info"> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
5 <h3> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
6 Controls |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
7 </h3> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
8 <div class="whitebox"> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
9 {% if user.is_authenticated %} |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
10 <p> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
11 You are logged in |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
12 as <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:
18
diff
changeset
|
13 </p> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
14 <p> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
15 (<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:
18
diff
changeset
|
16 </p> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
17 {% else %} |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
18 <p> |
24
2e7226e90157
Many fixes. See detailed description.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
23
diff
changeset
|
19 <a href="{% url auth_login%}?next={{ request.path }}">Log in</a> |
23
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
20 </p> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
21 {% endif %} |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
22 <form method="get" action="." > |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
23 <br/> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
24 <input id="search" type="text" name="search" maxlength="200" size="10"/> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
25 <input type="submit" value="Search" /> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
26 </form> |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
27 |
d9658d30b814
Implement initial user registration and authentication. Still way buggy.
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
18
diff
changeset
|
28 </div> |
18
8059d39dc6ef
Remove the welcome message, add missing template
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
29 </div> |
8059d39dc6ef
Remove the welcome message, add missing template
Jordi Gutiérrez Hermoso <jordigh@gmail.com>
parents:
diff
changeset
|
30 {% endblock %} |