{# templates/login/index.html.twig #}
{% extends 'base-login.html.twig' %}
{% block body %}
{% for flash_error in app.flashes('reset_password_error') %}
<div class="alert alert-danger" role="alert">{{ flash_error }}</div>
{% endfor %}
<h3>{{'reset_password.title'|trans}}</h3>
{{ form_start(requestForm) }}
<div class="m-2">
{{ form_label(requestForm.email) }}
{{ form_widget(requestForm.email, {'attr':{'class':'form-control'}}) }}
<small>
{{'reset_password.email_prompt'|trans}}
</small>
</div>
<div class="d-flex justify-content-center">
<a href="{{path('login')}}" class="btn btn-default float-left">{{ 'buttons.cancel'|trans }}</a>
<button class="btn btn-success float-right">{{'buttons.send_password_reset_email'|trans}}</button>
</div>
{{ form_end(requestForm) }}
{% endblock %}