{% extends "account/base.html" %}

{% block title %}{{ page_title(_("Password Reset")) }}{% endblock %}

{% block content %}

    <h1>{{ _("Password Reset") }}</h1>
    {% if user.is_authenticated() %}
    {% include "account/snippets/already_logged_in.html" %}
    {% endif %}

    <p>{{ _("Forgotten your password? Enter your email address below, and we'll send you an email allowing you to reset it.") }}</p>

    <form method="POST" action="{{ url('account_reset_password') }}" class="password_reset">
        {{ csrf() }}
        {{ form.as_p() }}
        <input type="submit" value="{{ _("Reset My Password") }}" />
    </form>

    <p>{% trans %}Please contact us if you have any trouble resetting your password.{% endtrans %}</p>
{% endblock %}

{% block js %}
    {{ super() }}
    <script type="text/javascript">
        $("#id_email").focus();
    </script>
{% endblock %}
