templates/reset_password/request.html.twig line 1

Open in your IDE?
  1. {% extends 'security/login.html.twig' %}
  2. {% block title %}Reset your password
  3. {% endblock %}
  4. {% block bodyclass %}class="login"{% endblock %}
  5. {% block body %}
  6.     {% for flashError in app.flashes('reset_password_error') %}
  7.         <div class="alert alert-danger" role="alert">{{ flashError }}</div>
  8.     {% endfor %}
  9.     <div class="login_wrapper">
  10.         <div class="form login_form">
  11.             <section class="login_content">
  12.                 <h1>{{ agent is not defined or not agent ? "frontoffice.reset_client_password_title"|trans : "frontoffice.reset_agent_password_title"|trans  }}</h1>
  13.                 {{ form_start(requestForm) }}
  14.                 {{ form_row(requestForm.email) }}
  15.                 <div>
  16.                     {{ "frontoffice.reset_agent_password_description"|trans }}
  17.                 </div>
  18.                 <div class="my-2">
  19.                     <button class="btn btn-primary">{{ "frontoffice.password_reset_button_text" | trans }}</button>
  20.                 </div>
  21.                 {{ form_end(requestForm) }}
  22.                 {% if (agent is not defined or not agent) %}
  23.                     <div class="my-2">
  24.                         <a href="{{ path('app_agent_forgot_password_request')  }}">{{ "frontoffice.reset_agent_message"|trans }}</a>
  25.                     </div>
  26.                 {% else %}
  27.                     <div class="my-2">
  28.                         <a href="{{ path('app_forgot_password_request')  }}">{{ "frontoffice.reset_client_message"|trans }}</a>
  29.                     </div>
  30.                 {% endif %}
  31.             </section>
  32.         </div>
  33.     </div>
  34. {% endblock %}