{% extends "dcbase/base-narrow-dialog.html" %}
{% load i18n %}
{% load account %}

{% block pageTitle %}{% trans "Password Reset" %}{% endblock %}

{% block style %}
    <style>
        #pwd-reset-form { margin-bottom: 10px; }
    </style>
{% endblock %}

{% block panelHeading %}
    <h1>{% trans "Password Reset" %}</h1>
{% endblock %}

{% block panelBody %}
    {% if user.is_authenticated %}
        {% include "account/snippets/already_logged_in.html" %}
    {% endif %}

    <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>

    <form id="pwd-reset-form" method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
        {% include "dcbase/form.html" %}
        <input class="btn btn-primary" type="submit" value="{% trans "Reset My Password" %}"/>
    </form>

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

{% block script %}
    <script>
        $("#id_email").focus();
    </script>
{% endblock %}
