2012-06-09 17:11:28 +02:00
|
|
|
{% extends "registration/_registration_base.html" %}
|
|
|
|
{% load url from future %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if form.errors %}
|
2012-08-08 10:46:36 +02:00
|
|
|
<div class="alert alert-error">
|
|
|
|
<strong>Error:</strong> Your username and password didn't match. Please try again.
|
|
|
|
</div>
|
2012-06-09 17:11:28 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2012-08-08 10:46:36 +02:00
|
|
|
<h2>
|
|
|
|
Login
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<form method="post" action="{% url "auth_login" %}">
|
2012-06-09 17:11:28 +02:00
|
|
|
{% csrf_token %}
|
2012-08-08 10:46:36 +02:00
|
|
|
<table class="table">
|
2012-06-09 17:11:28 +02:00
|
|
|
<tr>
|
2012-06-14 10:21:01 +02:00
|
|
|
<th>{{ form.username.label_tag }}</th>
|
2012-06-09 17:11:28 +02:00
|
|
|
<td>{{ form.username }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2012-06-14 10:21:01 +02:00
|
|
|
<th>{{ form.password.label_tag }}</th>
|
2012-06-09 17:11:28 +02:00
|
|
|
<td>{{ form.password }}</td>
|
|
|
|
</tr>
|
2012-06-14 10:21:01 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
2012-08-14 12:15:39 +02:00
|
|
|
<a href="{% url "django.contrib.auth.views.password_reset" %}">Forgot password</a>
|
2012-06-29 14:13:25 +02:00
|
|
|
</td>
|
|
|
|
<td>
|
2012-08-14 12:15:39 +02:00
|
|
|
<input class="btn pull-right" type="submit" value="Login" />
|
2012-06-14 10:21:01 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
2012-06-09 17:11:28 +02:00
|
|
|
</table>
|
2012-07-14 13:56:21 +02:00
|
|
|
<input type="hidden" name="next" value="{% url "accounts_index" %}" />
|
2012-06-09 17:11:28 +02:00
|
|
|
</form>
|
|
|
|
{% endblock %}
|