{% extends "outside_template/registration/base_login.html" %}
{% load i18n static %}

{#{% block breadcrumb %}#}
{#    <ol class="breadcrumb">#}
{#        <li class="breadcrumb-item">#}
{#            <a href="{% url 'core:index' %}">{% trans 'Home' %}</a>#}
{#        </li>#}
{#        <li class="breadcrumb-item">#}
{#            {% trans 'Password reset' %}#}
{#        </li>#}
{#    </ol>#}
{#{% endblock %}#}

{% block containerright %}
    <div class="alert alert-primary" role="alert">
        <p>{% trans "Forgotten your password? Enter your email address below, and we'll email instructions for setting a new one." %}</p>
    </div>


     <form class="needs-validation was-validated" method="post" novalidate>
        {% csrf_token %}
     {% csrf_token %}
        <div class="form-group col-12">
            <label for="id_email">{% trans 'Email address:' %}</label>
            <input name="{{ form.email.html_name }}"
                   id="{{ form.email.id_for_label }}"
                   type="{{ form.email.widget.input_type }}"
                   {% if form.email.max_length %}maxlength="{{ form.email.max_length }}"{% endif %}
                   value="{% if form.email.value is not None %}{{ form.email.value }}{% endif %}"
                   {% if form.email.field.required %} required {% endif %}
                   type="text" class="form-control obrigatorio" placeholder="Digite seu login">
            {% if form.email.errors %}
                {{ form.email.errors }}
            {% endif %}
            {% if form.email.help_text %}
                <small class="form-text text-muted">{{ form.email.help_text|safe }}</small>
            {% endif %}
            {% if form.email.field.required %}
                <div class="invalid-feedback">
                    {{ form.email.field.error_messages.required }}
                </div>
            {% endif %}

            <a href="{% url 'core:login' %}" class="btn btn-secondary" >{% trans 'Voltar Para Login' %}</a>

            <input class="btn btn-primary" type="submit" value="{% trans 'Reset my password' %}"/>
        </div>
    </form>
{% endblock %}
