{% extends "base.html" %}

{% block sidenav %}
    &nbsp;
{% endblock %}

{% block content %}

<div class="row">
    <h2>Connexion</h2>
    {% if form.errors %}
	<p>Your username and password didn't match. Please try again.</p>
	{% endif %}

	<form method="post" action="{% url 'members:django.contrib.auth.views.login' %}">
	{% 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" />
	<input type="hidden" name="next" value="{{ next }}" />
	</form>
</div>

{% endblock %}
