From c97d3ebb980d5ead80f19db03958bf40b06d9c26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 9 Dec 2020 21:48:49 +0100 Subject: [PATCH 1/1] Add session edit error landing form --- Resources/views/session/edit.html.twig | 53 ++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Resources/views/session/edit.html.twig diff --git a/Resources/views/session/edit.html.twig b/Resources/views/session/edit.html.twig new file mode 100644 index 0000000..5751cc9 --- /dev/null +++ b/Resources/views/session/edit.html.twig @@ -0,0 +1,53 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+

+ {{ session.title }} + {{ session.location.at }} +

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