{% extends "adminlte2/base_anonymous.html" %}
{% load i18n static %}


{% block anonymous_form_instructions %}
  <h3>{% trans "Forgotten your password?" %}</h3>
  <p>
    {% trans "Enter your email address below, and we'll email instructions for setting a new one." %}
  </p>
{% endblock anonymous_form_instructions %}


{% block anonymous_form %}
  <form method="post">
    {% csrf_token %}
    <fieldset>
      <div class="form-group has-feedback {% if form.email.errors|length > 0 %} has-error {% endif %}">
        <input type="email" name="email" class="form-control" placeholder="Email" maxlength="254" required id="id_email">
        <span class="glyphicon glyphicon-mail form-control-feedback"></span>
        <div class="text-danger error-list">
          {{ form.email.errors }}
        </div>
      </div>
    </fieldset>
    <input type="submit" class="btn btn-primary" value="{% trans 'Reset my password' %}" />
  </form>
{% endblock anonymous_form %}


{% block anonymous_links %}
  <a href="{% url 'login' %}">Return to login</a>
{% endblock anonymous_links %}
