{% extends '@RapsysAir/body.html.twig' %} {% block content %} {{ session.title }} {{ session.location.at }} {% if form.modify is defined or form.raincancel is defined %} {{ form_start(form) }} {% if form.modify is defined %} {% if is_granted('ROLE_REGULAR') %} {{ form_row(form.begin) }} {{ form_row(form.length) }} {{ form_row(form.modify) }} {% endif %} {% if is_granted('ROLE_SENIOR') %} {{ form_row(form.location) }} {{ form_row(form.move) }} {% endif %} {% if is_granted('ROLE_ADMIN') %} {{ form_row(form.user) }} {% endif %} {{ form_row(form.cancel) }} {% if is_granted('ROLE_ADMIN') %} {{ form_row(form.attribute) }} {{ form_row(form.autoattribute) }} {{ form_row(form.lock) }} {% endif %} {% elseif form.raincancel is defined %} {{ form_row(form.raincancel) }} {% endif %} {# render csrf token etc .#} {{ form_end(form) }} {% endif %} {% endblock %}