{% extends "base.html" %}

{% block content %}
<div class="hero-unit">

	{% if form.errors %}
	<p>Utilisateur inconnu, ou mauvais mot de passe... Recommencez.</p>
	{% endif %}

	<form method="post">
	{% csrf_token %}
		<table>
		<tr>
		    <td>{{ form.username.label_tag }}</td> <td>{{ form.username }}</td>
		</tr>
		<tr>
		    <td>{{ form.password.label_tag }}</td> <td>{{ form.password }}</td>
		</tr>
		</table>

		<input type="submit" value="Connexion" />
		{% if next %}
		<input type="hidden" name="next" value="{{ next }}">
		{% endif %}
	</form>
</div>

{% endblock %}
