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

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