{% extends "account/base.html" %}
{% load static i18n %}

{% block head_title %}{% trans "Password Reset" %}{% endblock%}
{% block auth_title %}{% trans "Password Reset" %}{% endblock%}

{% block auth_body %}
  <p class="login-box-msg text-center">{% trans "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>
  {% if user.is_authenticated %}
      {% include "account/snippets/already_logged_in.html" %}
  {% endif %}  
  <form method="post" action="{% url 'account_reset_password' %}">
    {% csrf_token %}
    {% include 'account/snippets/form_error_list.html' with errors=form.non_field_errors %}
    {% include 'account/snippets/form_control.html' with field=form.email %}
    <button class="btn btn-primary w-100 mb-3" type="submit">{% trans "Reset my Pasword" %}</button>
    <p class="mb-1 text-center small"> {% trans "Please contact us if you have any trouble resetting your password." %} {% blocktrans trimmed %}Already remember your account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktrans %}</p>
  </form>
{% endblock %}
