* Add a message to the login screen.
[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 <p>
16 {% blocktrans with "http://www.evolution-events.nl" as ee_url and "http://www.evolution-events.nl/forum" as forum_url and "/forum/phpbb/profile.php?mode=register" as register_url %}
17 You can login with your <a href="{{ ee_url }} ">Evolution Events</a>
18 <a href="{{ forum_url }}">forum</a> account. If you don't have a forum account
19 yet, first <a href="{{ register_url }}">register</a>.
20 {% endblocktrans %}
21 </p>
22 <form method="post" action=".">
23 <table>
24 <tr><td><label for="id_username">{% trans "Username" %}</label></td><td>{{ form.username }}</td></tr>
25 <tr><td><label for="id_password">{% trans "Password" %}</label></td><td>{{ form.password }}</td></tr>
26 </table>
27
28 <input type="submit" value="{% trans "Login" %}" />
29 <input type="hidden" name="next" value="{{ next }}" />
30
31 </form>
32
33 {% endblock %}