]> Raphaël G. Git Repositories - blogbundle/commitdiff
Add recover template
authorRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 06:04:27 +0000 (07:04 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 11 Dec 2023 06:04:27 +0000 (07:04 +0100)
Resources/views/form/recover.html.twig [new file with mode: 0644]

diff --git a/Resources/views/form/recover.html.twig b/Resources/views/form/recover.html.twig
new file mode 100644 (file)
index 0000000..69b7ba2
--- /dev/null
@@ -0,0 +1,28 @@
+{% extends '@RapsysBlog/_base.html.twig' %}
+{% block content %}
+       <section class="form">
+               <header>
+                       <h2><a href="{{ path('rapsys_user_recover') }}">{{ title }}</a></h2>
+               </header>
+               <section>
+                       {% if sent %}
+                               <p class="message notice">{% trans %}Your recover account message has been sent{% endtrans %}</p>
+                       {% else %}
+                               {{ form_start(recover) }}
+                                       {% if recover.mail is defined %}
+                                               {{ form_row(recover.mail) }}
+                                       {% endif %}
+
+                                       {% if recover.password is defined %}
+                                               {{ form_row(recover.password) }}
+                                       {% endif %}
+
+                                       {{ form_row(recover.submit) }}
+
+                                       {# Render CSRF token etc .#}
+                                       <footer style="display:none">{{ form_rest(recover) }}</footer>
+                               {{ form_end(recover) }}
+                       {% endif %}
+               </section>
+       </section>
+{% endblock %}