templates/auth/password_forgot.html.twig line 1

Open in your IDE?
  1. {% extends 'auth/auth-page.html.twig' %}
  2. {% import 'macros/button.macro.twig' as button %}
  3. {% block authHeader %}
  4.   <h1 class="text-4xl font-bold uppercase mb-11">
  5.     {{ 'auth.form.forgot.headline'|trans }}
  6.   </h1>
  7. {% endblock %}
  8. {% block authContent %}
  9.   <h2 class="mb-6 text-2xl font-bold uppercase">
  10.     {{ 'auth.form.forgot.subheadline'|trans }}
  11.   </h2>
  12.   {{ form_start(forgotForm, { attr: { 'data-turbo': 'false' } }) }}
  13.   {{ form_row(forgotForm.email) }}
  14.   {% for message in app.flashes('error') %}
  15.     <div class="p-2 my-4 border-2 alert alert-error bg-danger-300 border-danger-500">
  16.       {{ message }}
  17.     </div>
  18.   {% endfor %}
  19.   {{
  20.     button.submit(
  21.       'auth.form.forgot.submit'|trans,
  22.       'primary',
  23.       { icon_after: 'arrow-right-tail', attr: { class: 'w-full text-left' } }
  24.     )
  25.   }}
  26.   {{ form_end(forgotForm) }}
  27. {% endblock %}
  28. {% block authFooter %}
  29.   <p>
  30.     {{ 'auth.form.forgot.readytologin'|trans }}
  31.   </p>
  32.   <div class="flex justify-center gap-10 mt-6">
  33.     {{ button.link('login'|trans, 'neutral', path('auth_login'), { size: 'sm' }) }}
  34.     {% if document.property('page-faq') %}
  35.       {{ button.link('faq'|trans, 'black', document.property('page-faq'), { size: 'sm' }) }}
  36.     {% endif %}
  37.   </div>
  38. {% endblock %}