{% load i18n sekizai_tags staticfiles %}
<h2>Connexion</h2>
<div>
  <form method="post" action="">{% csrf_token %}
    {{ form.non_field_errors }}
    <p>
       {{ form.username.errors }}
       <label for="{{ form.username.id_for_label }}">{% trans "Nom d'utilisateur:" %}</label>
       <input id="{{ form.username.id_for_label }}" type="text" name="{{ form.username.html_name }}" 
          autofocus="autofocus" autocorrect="off" autocapitalize="off" maxlength="255" spellcheck="false" autocomplete="off"/>
    </p>
    <p>
       {{ form.password.errors }}
       {{ form.password.label_tag }}
        <input id="{{ form.password.id_for_label}}" type="password" autocorrect="off" autocapitalize="off" name="{{ form.password.html_name }}" spellcheck="false" autocomplete="off"/>
    </p>
    <input type="submit" name="{{ submit_name }}" value="{% trans "Se connecter" %}"/>
    {% comment %}
      {% if cancel %}
        <input type="submit" name="cancel" value="Abandonner"/>
      {% endif %}
    {% endcomment %}
  </form>
</div>

<div class="login-actions">
  <p>→  <a href="{% url 'auth_password_reset' %}">{% trans "Mot de passe oublié ?" %}</a></p>
  {% comment %}
    <p>→  <a href="mailto:assistance-informatique@auf.org?subject=Mot de passe id.auf oublié">{% trans "Mot de passe oublié ?" %}</a></p>
  {% endcomment %}
</div>

{% addtoblock "js-endpage" %}<script type="text/javascript" src="{% static "authentic2/js/js_seconds_until.js" %}"></script>{% endaddtoblock %}
