{% extends "site_base.html" %}

{% load i18n %}
{% load account_tags %}

{% block body_class %}account account-password-reset{% endblock %}
{% block head_title %}{% trans "Password reset sent" %}{% endblock %}

{% block body %}
    {% if not resend %}
        <form method="POST" action="{% url "account_password_reset" %}">
            <h1>{% trans "Password reset sent" %}</h1>
            <p>{% blocktrans %}We have sent you an email. If you do not receive it within a few minutes, try resending or contact us at <a href="mailto:{{ THEME_CONTACT_EMAIL }}">{{ THEME_CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
            {% csrf_token %}
            {% for field in form %}
                {{ field.as_hidden }}
            {% endfor %}
            <div class="form-actions">
                <button name="resend">{% trans "Resend" %}</button>
            </div>
        </form>
    {% else %}
        <p>{% blocktrans %}We have resent the password email. If you do not receive it within a few minutes, contact us at <a href="mailto:{{ THEME_CONTACT_EMAIL }}">{{ THEME_CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
    {% endif %}
{% endblock %}
