templates/security/password_reset_request.html.twig line 1

Open in your IDE?
  1. {% extends 'security/layout.html.twig' %}
  2. {% block title %}{{ 'passwordReset' | trans }}{% endblock %}
  3. {% block app_security_content %}
  4.     <div class="new-login-box">
  5.         <div class="white-box">
  6.             <h1 class="h3 mb-3 font-weight-normal text-center">{{ 'Form.passwordRecover' | trans }}</h1>
  7.             {{ form_start(form, {action: path('app_password_reset_request'), 'attr': {'id':'formPublication', 'style':'margin-top: 20px;'}}) }}
  8.             {% if form.vars.errors|length %}
  9.                 <div class="alert alert-danger">
  10.                     {{ form_errors(form) }}
  11.                 </div>
  12.             {% endif %}
  13.             <div class="form-group">
  14.                 {{ form_widget(form.email, { 'attr': {'id': 'input-email', 'placeholder': 'select.emailLogIn','oninvalid':'setCustomValidity("Ingrese un email")', 'onfocus':'setCustomValidity("")'} }) }}
  15.             </div>
  16.             {% if message is defined %}
  17.                 <div class="form-group">
  18.                     <label for="input-email" class="control-label">{{ message }}</label>
  19.                 </div>
  20.             {% endif %}
  21.             <div style="margin-top: 15px" class="text-center">
  22.                 <button type="submit" class="btn btn-lg btn-primary">{{ 'sendRecoverEmail' | trans }}</button>
  23.             </div>
  24.             {{ form_widget(form._token) }}
  25.             {{ form_end(form, {'render_rest': false}) }}
  26.             <div style="margin-top: 15px" class="text-center">
  27.                 <a href="{{ path('app_login') }}">
  28.                     {{ 'Back' | trans }}
  29.                 </a>
  30.             </div>
  31.         </div>
  32.     </div>
  33. {% endblock %}