{% extends "site_base.html" %}

{% load url from future %}
{% load i18n %}
{% load bootstrap_tags %}
{% load account_tags %}

{% block head_title %}{% trans "Password reset" %}{% endblock %}

{% user_display request.user as user_display %}

{% block body_outer %}
<div class="page-header">
  <h2>{% trans "Password Reset" %}</h2>
</div>
<div class="row">
  <div class="col-md-8">
    <p class="lead">{% trans "Forgotten your password?" %}</p>
    <p class="lead">{% trans "Enter your email address below, and we'll send you an email allowing you to reset it." %}</p>
    <form method="POST" action="">
      <fieldset>
      {% csrf_token %}
      {{ form.as_p }}
        <div class="form-actions">
          <button type="submit" class="btn btn-primary">{% trans "Reset my password" %}</button>
        </div>
      </fieldset>
    </form>
    <p class="grid-spacer">{% blocktrans %}If you have any trouble resetting your password, contact us at <a href="mailto:{{ THEME_ACCOUNT_CONTACT_EMAIL }}">{{ THEME_ACCOUNT_CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
  </div>
</div>
{% endblock %}
{% block extra_body %}
  <script>
    $("#id_email").focus();
  </script>
{% endblock %}