-{% 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>
<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>
<div>
- {{ form_row(session_edit.begin) }}
+ {% if forms.session.date is defined %}
+ {{ form_row(forms.session.date) }}
+ {% endif %}
+
+ {{ 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 %}
</div>
{% endif %}
- {% if session_edit.move is defined %}
+ {% if forms.session.move is defined %}
<div class="dangerous">
<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 %}
</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') %}