]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/_session_edit.html.twig
Rename title in civility
[airbundle] / Resources / views / form / _session_edit.html.twig
index 3477a535b53e24f0fc1403b310b2203be59c5b29..4c6c368f3e1016bec47cc765b27b99bbfd8943cc 100644 (file)
@@ -1,4 +1,4 @@
-{% if session_edit.modify is defined or session_edit.move is defined or session_edit.cancel is defined or session_edit.raincancel is defined %}
+{% 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') %}
        <section>
                <h2>{% trans %}Modify{% endtrans %}</h2>
                {{ form_start(session_edit) }}
@@ -18,7 +18,7 @@
                                        {{ form_row(session_edit.move) }}
                                </div>
                        {% endif %}
-                       {% if session_edit.cancel is defined or session_edit.raincancel is defined %}
+                       {% if session_edit.cancel is defined or session_edit.raincancel is defined or session_edit.forcecancel is defined or is_granted('ROLE_ADMIN') %}
                                <div class="mortal">
                                        {% if is_granted('ROLE_ADMIN') %}
                                                {{ form_row(session_edit.user) }}
                                                {{ form_row(session_edit.raincancel) }}
                                        {% endif %}
 
-                                       {% if is_granted('ROLE_ADMIN') %}
+                                       {% if session_edit.forcecancel is defined %}
+                                               {{ form_row(session_edit.forcecancel) }}
+                                       {% endif %}
 
-                                               {{ form_row(session_edit.attribute) }}
+                                       {% if is_granted('ROLE_ADMIN') %}
+                                               {% if session_edit.attribute is defined %}
+                                                       {{ form_row(session_edit.attribute) }}
 
-                                               {{ form_row(session_edit.autoattribute) }}
+                                                       {{ form_row(session_edit.autoattribute) }}
+                                               {% endif %}
 
                                                {{ form_row(session_edit.lock) }}
                                        {% endif %}