1 {% 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') %}
3 <h2>{% trans %}Modify{% endtrans %}</h2>
4 {{ form_start(session_edit) }}
5 {% if session_edit.modify is defined %}
7 {{ form_row(session_edit.begin) }}
9 {{ form_row(session_edit.length) }}
11 {{ form_row(session_edit.modify) }}
14 {% if session_edit.move is defined %}
15 <div class="dangerous">
16 {{ form_row(session_edit.location) }}
18 {{ form_row(session_edit.move) }}
21 {% if session_edit.cancel is defined or session_edit.raincancel is defined or session_edit.forcecancel is defined or is_granted('ROLE_ADMIN') %}
23 {% if is_granted('ROLE_ADMIN') %}
24 {{ form_row(session_edit.user) }}
27 {% if session_edit.cancel is defined %}
28 {{ form_row(session_edit.cancel) }}
31 {% if session_edit.raincancel is defined %}
32 {{ form_row(session_edit.raincancel) }}
35 {% if session_edit.forcecancel is defined %}
36 {{ form_row(session_edit.forcecancel) }}
39 {% if is_granted('ROLE_ADMIN') %}
40 {% if session_edit.attribute is defined %}
41 {{ form_row(session_edit.attribute) }}
43 {{ form_row(session_edit.autoattribute) }}
46 {{ form_row(session_edit.lock) }}
50 {# render csrf token etc .#}
51 <footer style="display:none">{{ form_rest(session_edit) }}</footer>
52 {{ form_end(session_edit) }}