]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/form/_session.html.twig
Move hat default value in entity
[airbundle] / Resources / views / form / _session.html.twig
index 4c6c368f3e1016bec47cc765b27b99bbfd8943cc..1f0d3a0668d679c4161ca3b531419bc4939e2095 100644 (file)
@@ -1,54 +1,54 @@
-{% 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') %}
+{% if forms.session.modify is defined or forms.session.move is defined or forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
        <section>
                <h2>{% trans %}Modify{% endtrans %}</h2>
-               {{ form_start(session_edit) }}
-                       {% if session_edit.modify is defined %}
+               {{ form_start(forms.session) }}
+                       {% if forms.session.modify is defined %}
                                <div>
-                                       {{ form_row(session_edit.begin) }}
+                                       {{ form_row(forms.session.begin) }}
 
-                                       {{ form_row(session_edit.length) }}
+                                       {{ form_row(forms.session.length) }}
 
-                                       {{ form_row(session_edit.modify) }}
+                                       {{ form_row(forms.session.modify) }}
                                </div>
                        {% endif %}
-                       {% if session_edit.move is defined %}
+                       {% if forms.session.move is defined %}
                                <div class="dangerous">
-                                       {{ form_row(session_edit.location) }}
+                                       {{ form_row(forms.session.location) }}
 
-                                       {{ form_row(session_edit.move) }}
+                                       {{ form_row(forms.session.move) }}
                                </div>
                        {% endif %}
-                       {% if session_edit.cancel is defined or session_edit.raincancel is defined or session_edit.forcecancel is defined or is_granted('ROLE_ADMIN') %}
+                       {% if forms.session.cancel is defined or forms.session.raincancel is defined or forms.session.forcecancel is defined or is_granted('ROLE_ADMIN') %}
                                <div class="mortal">
                                        {% if is_granted('ROLE_ADMIN') %}
-                                               {{ form_row(session_edit.user) }}
+                                               {{ form_row(forms.session.user) }}
                                        {% endif %}
 
-                                       {% if session_edit.cancel is defined %}
-                                               {{ form_row(session_edit.cancel) }}
+                                       {% if forms.session.cancel is defined %}
+                                               {{ form_row(forms.session.cancel) }}
                                        {% endif %}
 
-                                       {% if session_edit.raincancel is defined %}
-                                               {{ form_row(session_edit.raincancel) }}
+                                       {% if forms.session.raincancel is defined %}
+                                               {{ form_row(forms.session.raincancel) }}
                                        {% endif %}
 
-                                       {% if session_edit.forcecancel is defined %}
-                                               {{ form_row(session_edit.forcecancel) }}
+                                       {% if forms.session.forcecancel is defined %}
+                                               {{ form_row(forms.session.forcecancel) }}
                                        {% endif %}
 
                                        {% if is_granted('ROLE_ADMIN') %}
-                                               {% if session_edit.attribute is defined %}
-                                                       {{ form_row(session_edit.attribute) }}
+                                               {% if forms.session.attribute is defined %}
+                                                       {{ form_row(forms.session.attribute) }}
 
-                                                       {{ form_row(session_edit.autoattribute) }}
+                                                       {{ form_row(forms.session.autoattribute) }}
                                                {% endif %}
 
-                                               {{ form_row(session_edit.lock) }}
+                                               {{ form_row(forms.session.lock) }}
                                        {% endif %}
                                </div>
                        {% endif %}
                        {# render csrf token etc .#}
-                       <footer style="display:none">{{ form_rest(session_edit) }}</footer>
-               {{ form_end(session_edit) }}
+                       <footer style="display:none">{{ form_rest(forms.session) }}</footer>
+               {{ form_end(forms.session) }}
        </section>
 {% endif %}