From fea4250609e0a16f854af0fd67a4673a768dbca0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 9 Dec 2020 21:47:09 +0100 Subject: [PATCH] Add session edit form template --- Resources/views/form/_session_edit.html.twig | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Resources/views/form/_session_edit.html.twig diff --git a/Resources/views/form/_session_edit.html.twig b/Resources/views/form/_session_edit.html.twig new file mode 100644 index 0000000..3477a53 --- /dev/null +++ b/Resources/views/form/_session_edit.html.twig @@ -0,0 +1,49 @@ +{% if session_edit.modify is defined or session_edit.move is defined or session_edit.cancel is defined or session_edit.raincancel is defined %} +
+

{% trans %}Modify{% endtrans %}

+ {{ form_start(session_edit) }} + {% if session_edit.modify is defined %} +
+ {{ form_row(session_edit.begin) }} + + {{ form_row(session_edit.length) }} + + {{ form_row(session_edit.modify) }} +
+ {% endif %} + {% if session_edit.move is defined %} +
+ {{ form_row(session_edit.location) }} + + {{ form_row(session_edit.move) }} +
+ {% endif %} + {% if session_edit.cancel is defined or session_edit.raincancel is defined %} +
+ {% if is_granted('ROLE_ADMIN') %} + {{ form_row(session_edit.user) }} + {% endif %} + + {% if session_edit.cancel is defined %} + {{ form_row(session_edit.cancel) }} + {% endif %} + + {% if session_edit.raincancel is defined %} + {{ form_row(session_edit.raincancel) }} + {% endif %} + + {% if is_granted('ROLE_ADMIN') %} + + {{ form_row(session_edit.attribute) }} + + {{ form_row(session_edit.autoattribute) }} + + {{ form_row(session_edit.lock) }} + {% endif %} +
+ {% endif %} + {# render csrf token etc .#} + + {{ form_end(session_edit) }} +
+{% endif %} -- 2.41.1