{% extends 'security/baseAuthentication.html.twig' %}
{% block title %}{{ 'security.password.forgot.label'|trans }}{{ parent() }}{% endblock %}
{% block form %}
<div id="forgotForm" class="mt-2">
<h2 class="text-center mb-3">
{{ 'security.password.forgot.label'|trans }}
</h2>
{% include 'layouts/_flashMessages.html.twig' %}
<div class="mt-4 mb-5">
{% if passwordRecovery is not null and passwordRecovery.success %}
<div class="text-center">
<a class="btn btn-light" href="{{ path('root') }}">{{ 'global.back'|trans }}</a>
</div>
{% else %}
{{ form_start(recoverPasswordForm) }}
{{ form_row(recoverPasswordForm.login) }}
<div class="text-center mt-4">
<a href="{{ path('app.login') }}" class="btn btn-light">
{{ 'global.cancel'|trans }}
</a>
<button type="submit" id="sendForgotEmail" class="btn btn-global">
{{ 'global.reset'|trans }}
</button>
</div>
{{ form_end(recoverPasswordForm) }}
{% endif %}
</div>
</div>
{% endblock %}