templates/Authentication/forgot-password.html.twig line 1

Open in your IDE?
  1. {% extends "Authentication/template.html.twig" %}
  2. {% if form is defined %}
  3.     {% form_theme form "form_style.html.twig" %}
  4. {% endif %}
  5. {% block title %}
  6.     {{ "app_login.forgot_password_title"|trans({}, "authenticator") }}
  7. {% endblock %}
  8. {% block content %}
  9.     <div>
  10.         <h5 class="text-primary">{{ "LOGIN_WELCOME_TEXT"|param|default("app_login.welcome"|trans({}, "authenticator")) }}</h5>
  11.         <p class="text-muted">{{ "app_login.forgot_password_title"|trans({}, "authenticator") }}</p>
  12.     </div>
  13.     <div class="mt-4">
  14.         {% if submitted is defined %}
  15.             <p class="alert alert-success text-center">
  16.                 {{ "app_login.forgot_password_submit"|trans({}, "authenticator") }}
  17.             </p>
  18.         {% else %}
  19.             {{ form_start(form) }}
  20.             <p class="text-center alert alert-info">
  21.                 {{ "app_login.forgot_password_text"|trans({}, "authenticator") }}
  22.             </p>
  23.             <div class="mb-3">
  24.                 {{ form_row(form._username) }}
  25.             </div>
  26.             <div class="mt-3 d-grid">
  27.                 <button class="btn btn-primary waves-effect btn-label " type="submit">
  28.                     <i class="bx bx-check label-icon"></i> {{ "app_login.reinitialize_password"|trans({}, "authenticator") }}
  29.                 </button>
  30.             </div>
  31.             {{ form_end(form) }}
  32.         {% endif %}
  33.         <p class="mt-3 text-center">
  34.             <a class="text-muted" href="{{ path("login") }}">
  35.                 {{ "app_login.annuler"|trans({}, "authenticator") }}
  36.             </a>
  37.         </p>
  38.     </div>
  39. {% endblock %}