* Put the extends tag before the load tag in the login template.
[matthijs/projects/xerxes.git] / templates / base / login.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3
4 {% block content %}
5
6 {% if form.has_errors %}
7 <p>{% trans "Your username and password didn't match. Please try again." %}</p>
8 {% endif %}
9
10 {% if user.is_authenticated %}
11         <p>{% blocktrans with user.username as username %}You are currently logged in as {{ username }}{% endblocktrans %}</p>
12         <p><a href="../logout/">{% trans "Logout" %}</a></p>
13 {% endif %}
14
15 <form method="post" action=".">
16 <table>
17 <tr><td><label for="id_username">{% trans "Username" %}</label></td><td>{{ form.username }}</td></tr>
18 <tr><td><label for="id_password">{% trans "Password" %}</label></td><td>{{ form.password }}</td></tr>
19 </table>
20
21 <input type="submit" value="{% trans "Login" %}" />
22 <input type="hidden" name="next" value="{{ next }}" />
23
24 </form>
25
26 {% endblock %}