X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/24f36b713eff5d897518b317bc11b9a40371f9a0..5eaefbbc2e975fc4aee4e9897c39a7939046f22c:/Resources/views/form/_session.html.twig diff --git a/Resources/views/form/_session.html.twig b/Resources/views/form/_session.html.twig new file mode 100644 index 0000000..4c6c368 --- /dev/null +++ b/Resources/views/form/_session.html.twig @@ -0,0 +1,54 @@ +{% if session_edit.modify is defined or session_edit.move is defined or session_edit.cancel is defined or session_edit.raincancel is defined or session_edit.forcecancel is defined or is_granted('ROLE_ADMIN') %} +
+

{% 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 or session_edit.forcecancel is defined or is_granted('ROLE_ADMIN') %} +
+ {% 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 session_edit.forcecancel is defined %} + {{ form_row(session_edit.forcecancel) }} + {% endif %} + + {% if is_granted('ROLE_ADMIN') %} + {% if session_edit.attribute is defined %} + {{ form_row(session_edit.attribute) }} + + {{ form_row(session_edit.autoattribute) }} + {% endif %} + + {{ form_row(session_edit.lock) }} + {% endif %} +
+ {% endif %} + {# render csrf token etc .#} + + {{ form_end(session_edit) }} +
+{% endif %}