{% extends "passerelle/base.html" %}
{% load i18n %}
{% load url from future %}

{% block wrapper %}
<div id="wrap">
{% endblock %}

{% block user-links %}
{% endblock %}

{% block content %}

<h2>{% trans 'Log In' %}</h2>

{% if form.errors %}
<p>{% trans 'Incorrect password. Try again.' %}</p>
{% endif %}

<form method="post" id="login-form">
{% csrf_token %}

<p>
  <label for="id_username">{{ form.username.label_tag }}</label>
  {{ form.username }}
</p>
<p>
  <label for="id_password">{{ form.password.label_tag }}</label>
  {{ form.password }}
</p>

<input type="submit" value="{% trans 'Log In' %}" class="submit login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}
