{% extends 'auth/base.html.twig' %}
{% trans_default_domain 'security' %}

{% set t_root = 'auth.reset-password' %}

{% block title %}{{ (t_root ~ '.title')|trans }}{% endblock %}
{% block page_title %}{{ (t_root ~ '.title')|trans }}{% endblock %}

{% block body %}
    <div class="row mt-2 mb-2">

    <div class="form-errors">
        {% for flash_error in app.flashes('reset_password_error') %}
            <div>{{ flash_error }}</div>
        {% endfor %}
    </div>
 
    {{ form_start(form) }}
        <div class="form-errors">
            {{ form_errors(form) }}
        </div>
        
        <div class="col mb-3">
            {# {{ form_label(form.email, t_root ~ '.fields.@email.label', { 'label_attr': {'class': 'form-label'} }) }} #}
            <div class="form-errors"> {{ form_errors(form.email) }} </div>
            {{ form_widget(form.email, { 'attr': {'class': 'form-control', 'placeholder': t_root ~ '.fields.@email.placeholder'} }) }}
            <small>{{ (t_root ~ '.fields.@email.help')|trans }}</small>
        </div>

        <button class="btn btn-primary">{{ (t_root ~ '.actions.send-reset-email')|trans }}</button>
    {{ form_end(form) }}

    </div>
{% endblock %}
