templates/reset_password/request.html.twig line 1

Open in your IDE?
  1. {% extends 'Layouts/layout.html.twig' %}
  2. {% block title %}Reset your password{% endblock %}
  3. {% block content %}
  4.     <div class="container">
  5.         <div class="row align-items-center justify-content-center" style="height: 80vh;">
  6.             <div class="col-12 col-sm-8 col-md-5">
  7.                 {% for flash_error in app.flashes('reset_password_error') %}
  8.                     <div class="alert alert-danger" role="alert">{{ flash_error }}</div>
  9.                 {% endfor %}
  10.                 {#{ form_start(requestForm) }#}
  11.                 <form name="reset_password_request_form" method="post" class="box one p-5">
  12.                     <h3 class="mb-5 mt-2" >{% trans %}Reset your password{% endtrans %}</h3>
  13.                     <div class="mb-3">
  14.                         <label for="reset_password_request_form_email" class="form-label">{% trans %}Email{% endtrans %}:</label>
  15.                         {{ form_widget(requestForm.email) }}
  16.                     </div>
  17.                     {#{ form_row(requestForm.email) }#}
  18.                     <div>
  19.                         <small>
  20.                             {% trans %}Enter your email address and we will send you an email with a link that will let you reset your password{% endtrans %}.
  21.                         </small>
  22.                     </div>
  23.                     
  24.                     <div class="d-grid gap-2 mt-5">
  25.                         <button class="btn btn-primary">{% trans %}Send password reset email{% endtrans %}</button>
  26.                     </div>
  27.                     <div class="d-grid gap-2 mt-5">
  28.                         <p> <a href="{{ path('app_login') }}">{% trans %}Back to login{% endtrans %}</a></p>
  29.                     </div>
  30.                 
  31.                 {{ form_end(requestForm) }}
  32.             </div>
  33.         </div>
  34.     </div>
  35. {% endblock %}