From c5576c3388507075d79944120d610e9692d91da6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 11 Dec 2019 05:38:11 +0100 Subject: [PATCH 1/1] Add recover and login form fragments --- Resources/views/form/_application.html.twig | 20 ++++++++++++++++++++ Resources/views/form/_login.html.twig | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 Resources/views/form/_application.html.twig create mode 100644 Resources/views/form/_login.html.twig diff --git a/Resources/views/form/_application.html.twig b/Resources/views/form/_application.html.twig new file mode 100644 index 0000000..b165790 --- /dev/null +++ b/Resources/views/form/_application.html.twig @@ -0,0 +1,20 @@ +{{ form_start(application) }} +
+ {% if application.user is defined %} + {{ form_row(application.user) }} + {% endif %} + + {{ form_row(application.location) }} + + {{ form_row(application.date) }} + + {{ form_row(application.slot) }} +
+ + {{ form_row(application.submit) }} + + {# Render CSRF token etc .#} + +{{ form_end(application) }} diff --git a/Resources/views/form/_login.html.twig b/Resources/views/form/_login.html.twig new file mode 100644 index 0000000..61d55de --- /dev/null +++ b/Resources/views/form/_login.html.twig @@ -0,0 +1,16 @@ +{{ form_start(login) }} + +
+ {{ form_row(login.mail) }} + + {{ form_row(login.password) }} +
+ + {{ form_row(login.submit) }} + + {# Render CSRF token etc .#} + + +{{ form_end(login) }} -- 2.41.1