{% extends "sentry/layout.html" %}

{% load crispy_forms_tags %}
{% load i18n %}

{% block title %}{% trans "Recover Account" %} | {{ block.super }}{% endblock %}

{% block page_header_block %}{% endblock %}
{% block bodyclass %}{% endblock %}

{% block main %}
    <section class="body">
        <div class="page-header">
            <h2>{% trans "Recover Account" %}</h2>
        </div>
        <p>{% blocktrans %}To recover a lost account, you will need to know your account's username. We will send a confirmation
            email to this address which allows you to change your password.{% endblocktrans %}</p>

        <form class="form-stacked" action="" method="post">
            {% csrf_token %}

            {{ form|as_crispy_errors }}

            {% for field in form %}
                {{ field|as_crispy_field }}
            {% endfor %}

            <fieldset class="form-actions">
                <button type="submit" class="btn btn-primary">{% trans "Send Email" %}</button>
            </fieldset>
        </form>
    </section>
{% endblock %}