{% extends "authentic2/base-page.html" %}
{% load i18n %}

{% block title %}
{% trans "Resetting password" %}
{% endblock %}

{% block content %}
    <div class="columns small-12 text-center greybox">
        <h3>{% trans "Réinitialiser mot de passe" %}</h3>
    </div>

    <div class="columns small-12 loginbox">
        <div class="columns small-12 loginform">
            <form method="post">
                {% csrf_token %}
                {% for hidden in form.hidden_fields %}
                    {{ hidden }}
                {% endfor %}
                {% if form.errors %}
                <div class="row">
                    <div class="columns small-10 small-centered">
                        {% for error in form.non_field_errors %}
                            <small class="error">{{ error }}</small>
                        {% endfor %}
                    </div>
                </div>
                {% endif %}
                <div class="row">
                    <div class="columns small-10 small-centered">
                        <div class="columns small-12 medium-4">{{ form.email.label_tag }}</div>
                        <div class="columns small-12 medium-8">
                            {{ form.email }}
                            {% for error in form.email.errors %}
                                <small class="error">{{ error }}</small>
                            {% endfor %}
                        </div>
                    </div>
                </div>

                <div class="columns small-12 text-center">
                    <button type="submit" class="submit radius large inverted-button" name="{{ submit_name }}" value="{%  trans 'Submit' %}"><span class="text">{%  trans "SOUMETTRE" %}</span></button>
                </div>
            </form>
        </div>
    </div>
{% endblock %}
