{% extends "base.html" %}

{% load i18n %}
{% load account %}

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

{% block content %}
  <section class="section">
    <div class="container" style="max-width:600px;">
    <h1 class="title">{% trans "Password Reset" %}</h1>
    {% if user.is_authenticated %}
    {% include "account/snippets/already_logged_in.html" %}
    {% endif %}

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

    <form method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
      {% csrf_token %}
      {% include "form_snippet.html" %}
        <input type="submit" class="button is-primary" value="{% trans 'Reset My Password' %}" />
    </form>

    <div class="content mt-5">{% blocktrans %}Please contact us if you have any trouble resetting your password.{% endblocktrans %}</div>

    </div>
  </section>
{% endblock %}
