{% extends "authentic2/login_password_form.html" %}
{% load i18n %}

{% block form %}
<div>
  <form method="post" class="pk-mark-optional-fields">
  {{ form.non_field_errors }}
  {% csrf_token %}
  {% include "gadjo/widget.html" with field=form.username %}
  {% include "gadjo/widget.html" with field=form.password %}
  <div class="widget django-checkbox-input" id="id_remember_me_p">
    <div class="title">
      <label for="id_remember_me">Rester connecté</label>
    </div>
    <div class="content">
      {{ form.remember_me }}
    </div>
  </div>
{% block buttons %}
<button class="submit-button" name="{{ submit_name }}">{% trans "Log in" %}</button>
{% if cancel %}
<button class="cancel-button" name="cancel" formnovalidate>{% trans 'Cancel' %}</button>
{% endif %}
</form>
{{ form.media }}
{% endblock %}
</div>
{% endblock %}

{% block actions %}
<div class="login-actions">
{% if can_reset_password %}
<p>
  <a href="{% url 'password_reset' %}{% if request.GET.next %}?next={{ request.GET.next|urlencode }}{% endif %}">Vous avez oublié votre mot de passe ?</a>
</p>
{% endif %}

</div>
{% endblock %}
