]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/session/edit.html.twig
Remove contact.title from translated keys
[airbundle] / Resources / views / session / edit.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="form">
4 <h2>
5 <a href="{{ path('rapsys_air_session_view', {'id': session.id}) }}">{{ session.title }}</a>
6 <a href="{{ path('rapsys_air_location_view', {'id': session.location.id}) }}">{{ session.location.at }}</a>
7 </h2>
8 {% if form.modify is defined or form.move is defined or form.cancel is defined or form.raincancel is defined or form.forcecancel is defined or is_granted('ROLE_ADMIN') %}
9 {{ form_start(form) }}
10 {% if form.modify is defined %}
11 <div>
12 {{ form_row(form.begin) }}
13
14 {{ form_row(form.length) }}
15
16 {{ form_row(form.modify) }}
17 </div>
18 {% endif %}
19 {% if form.move is defined %}
20 <div class="dangerous">
21 {{ form_row(form.location) }}
22
23 {{ form_row(form.move) }}
24 </div>
25 {% endif %}
26 {% if form.cancel is defined or form.raincancel is defined or form.forcecancel is defined or is_granted('ROLE_ADMIN') %}
27 <div class="mortal">
28 {% if is_granted('ROLE_ADMIN') %}
29 {{ form_row(form.user) }}
30 {% endif %}
31
32 {% if form.cancel is defined %}
33 {{ form_row(form.cancel) }}
34 {% endif %}
35
36 {% if form.raincancel is defined %}
37 {{ form_row(form.raincancel) }}
38 {% endif %}
39
40 {% if form.forcecancel is defined %}
41 {{ form_row(form.forcecancel) }}
42 {% endif %}
43
44 {% if is_granted('ROLE_ADMIN') %}
45 {% if form.attribute is defined %}
46 {{ form_row(form.attribute) }}
47
48 {{ form_row(form.autoattribute) }}
49 {% endif %}
50
51 {{ form_row(form.lock) }}
52 {% endif %}
53 </div>
54 {% endif %}
55 {# render csrf token etc .#}
56 <footer style="display:none">{{ form_rest(form) }}</footer>
57 {{ form_end(form) }}
58 {% endif %}
59 </section>
60 {% endblock %}