]> Raphaël G. Git Repositories - airbundle/commitdiff
Add recover and login form fragments
authorRaphaël Gertz <git@rapsys.eu>
Wed, 11 Dec 2019 04:38:11 +0000 (05:38 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 11 Dec 2019 04:46:49 +0000 (05:46 +0100)
Resources/views/form/_application.html.twig [new file with mode: 0644]
Resources/views/form/_login.html.twig [new file with mode: 0644]

diff --git a/Resources/views/form/_application.html.twig b/Resources/views/form/_application.html.twig
new file mode 100644 (file)
index 0000000..b165790
--- /dev/null
@@ -0,0 +1,20 @@
+{{ form_start(application) }}
+       <section>
+               {% if application.user is defined %}
+                       {{ form_row(application.user) }}
+               {% endif %}
+
+               {{ form_row(application.location) }}
+
+               {{ form_row(application.date) }}
+
+               {{ form_row(application.slot) }}
+       </section>
+
+       {{ form_row(application.submit) }}
+
+       {# Render CSRF token etc .#}
+       <footer style="display:none">
+               {{ form_rest(application) }}
+       </footer>
+{{ form_end(application) }}
diff --git a/Resources/views/form/_login.html.twig b/Resources/views/form/_login.html.twig
new file mode 100644 (file)
index 0000000..61d55de
--- /dev/null
@@ -0,0 +1,16 @@
+{{ form_start(login) }}
+
+       <section>
+               {{ form_row(login.mail) }}
+
+               {{ form_row(login.password) }}
+       </section>
+
+       {{ form_row(login.submit) }}
+
+       {# Render CSRF token etc .#}
+       <footer style="display:none">
+               {{ form_rest(login) }}
+       </footer>
+
+{{ form_end(login) }}