]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/form/_session_edit.html.twig
Change title scheme format
[airbundle] / Resources / views / form / _session_edit.html.twig
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') %}
2 <section>
3 <h2>{% trans %}Modify{% endtrans %}</h2>
4 {{ form_start(session_edit) }}
5 {% if session_edit.modify is defined %}
6 <div>
7 {{ form_row(session_edit.begin) }}
8
9 {{ form_row(session_edit.length) }}
10
11 {{ form_row(session_edit.modify) }}
12 </div>
13 {% endif %}
14 {% if session_edit.move is defined %}
15 <div class="dangerous">
16 {{ form_row(session_edit.location) }}
17
18 {{ form_row(session_edit.move) }}
19 </div>
20 {% endif %}
21 {% if session_edit.cancel is defined or session_edit.raincancel is defined or session_edit.forcecancel is defined or is_granted('ROLE_ADMIN') %}
22 <div class="mortal">
23 {% if is_granted('ROLE_ADMIN') %}
24 {{ form_row(session_edit.user) }}
25 {% endif %}
26
27 {% if session_edit.cancel is defined %}
28 {{ form_row(session_edit.cancel) }}
29 {% endif %}
30
31 {% if session_edit.raincancel is defined %}
32 {{ form_row(session_edit.raincancel) }}
33 {% endif %}
34
35 {% if session_edit.forcecancel is defined %}
36 {{ form_row(session_edit.forcecancel) }}
37 {% endif %}
38
39 {% if is_granted('ROLE_ADMIN') %}
40 {% if session_edit.attribute is defined %}
41 {{ form_row(session_edit.attribute) }}
42
43 {{ form_row(session_edit.autoattribute) }}
44 {% endif %}
45
46 {{ form_row(session_edit.lock) }}
47 {% endif %}
48 </div>
49 {% endif %}
50 {# render csrf token etc .#}
51 <footer style="display:none">{{ form_rest(session_edit) }}</footer>
52 {{ form_end(session_edit) }}
53 </section>
54 {% endif %}