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 %}
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 %}
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 is_granted('ROLE_ADMIN') %}
37 {{ form_row(session_edit.attribute) }}
39 {{ form_row(session_edit.autoattribute) }}
41 {{ form_row(session_edit.lock) }}
45 {# render csrf token etc .#}
46 <footer style="display:none">{{ form_rest(session_edit) }}</footer>
47 {{ form_end(session_edit) }}