{% extends "registration/registration_base.html" %}
{% load i18n %}
{% load bootstrap4 %}
{% block title %}
    {% trans "Restore your password" %}
{% endblock %}

{% block content %}
    <div class="container text-center">
        <div class="row">
            <div class="col-md-5 mx-auto text-center">
                <form method="post" action="" class="form-signin">
                    <h1 class="please h3 mb-3 font-weight-normal">{% trans "Forgot password?" %}</h1>
                    {% csrf_token %}
                    {% if form.errors %}
                        <div role="alert" class="alert alert-danger">
                            <p class="text-left">
                                {% blocktrans %}
                                    We're sorry. We weren't able to identify you given the information provided.
                                    Please, check your email address or create a new account.
                                {% endblocktrans %}
                            </p>
                        </div>
                    {% endif %}
                    {% for field in form %}
                        {% bootstrap_field field show_label=False %}
                    {% endfor %}
                    <input type="hidden" name=" " value="{{ ' ' }}"/>
                    <div class="checkbox mb-3">
                        <button id="submit-btn" class="btn btn-lg btn-primary btn-block" type="submit">
                            {% trans "Send me recovery link" %}
                        </button>
                    </div>
                </form>
                <a href="{% url 'main:login' %}">{% trans "Sing in" %}</a>
                <a href="{% url 'registration_register' %}">{% trans "Sign up" %}</a>
            </div>
        </div>
    </div>
{% endblock %}


{# This is used by django.contrib.auth #}
