templates/security/forgotPassword.html.twig line 1

Open in your IDE?
  1. {% extends 'security/baseAuthentication.html.twig' %}
  2. {% block title %}{{ 'security.password.forgot.label'|trans }}{{ parent() }}{% endblock %}
  3. {% block form %}
  4.     <div id="forgotForm" class="mt-2">
  5.         <h2 class="text-center mb-3">
  6.             {{ 'security.password.forgot.label'|trans }}
  7.         </h2>
  8.         {% include 'layouts/_flashMessages.html.twig' %}
  9.         
  10.         <div class="mt-4 mb-5">
  11.             {% if passwordRecovery is not null and passwordRecovery.success %}
  12.                 <div class="text-center">
  13.                     <a class="btn btn-light" href="{{ path('root') }}">{{ 'global.back'|trans }}</a>
  14.                 </div>
  15.             {% else %}
  16.                 {{ form_start(recoverPasswordForm) }}
  17.                 {{ form_row(recoverPasswordForm.login) }}
  18.                 <div class="text-center mt-4">
  19.                     <a href="{{ path('app.login') }}" class="btn btn-light">
  20.                         {{ 'global.cancel'|trans }}
  21.                     </a>
  22.                     <button type="submit" id="sendForgotEmail" class="btn btn-global">
  23.                         {{ 'global.reset'|trans }}
  24.                     </button>
  25.                 </div>
  26.                 {{ form_end(recoverPasswordForm) }}
  27.             {% endif %}
  28.         </div>
  29.     </div>
  30. {% endblock %}