{% extends "base.html" %}
{% load i18n %}

{% block title %}
  {% trans "Log in" %}
{% endblock %}

{% block content %}
  {% if form.errors %}
    <p>{% trans "Your username and password didn't match. Please try again." %}</p>
  {% endif %}
  <form method="post" action="{% url 'auth_login' %}">
    {% csrf_token %}
    {{ form.as_p }}
    <br class="clear"/>
    <input id="connect" type="submit" value="{% trans "Login" %}" />
    <input type="hidden" name="next" value="{{ next }}" />
  </form>

  <p id="contact"><a href="/contact">{% trans "Contact your administrator" %}</a></p>
  <p id="forgotten-password"><a href="{% url 'auth_password_reset' %}">{% trans "Forgotten password ? Change password !" %}</a></p>
{% endblock %}
