1 {% extends '@RapsysAir/body.html.twig' %}
 
   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>
 
   8                 {% if form.modify is defined or form.raincancel is defined %}
 
  10                                 {% if form.modify is defined %}
 
  11                                         {% if is_granted('ROLE_REGULAR') %}
 
  13                                                         {{ form_row(form.begin) }}
 
  15                                                         {{ form_row(form.length) }}
 
  17                                                         {{ form_row(form.modify) }}
 
  20                                         {% if is_granted('ROLE_SENIOR') %}
 
  21                                                 <div class="dangerous">
 
  22                                                         {{ form_row(form.location) }}
 
  24                                                         {{ form_row(form.move) }}
 
  28                                                 {% if is_granted('ROLE_ADMIN') %}
 
  29                                                         {{ form_row(form.user) }}
 
  32                                                 {{ form_row(form.cancel) }}
 
  34                                                 {% if is_granted('ROLE_ADMIN') %}
 
  35                                                         {{ form_row(form.attribute) }}
 
  37                                                         {{ form_row(form.autoattribute) }}
 
  39                                                         {{ form_row(form.lock) }}
 
  42                                 {% elseif form.raincancel is defined %}
 
  44                                                 {{ form_row(form.raincancel) }}
 
  48                                 {# render csrf token etc .#}
 
  49                                 <footer style="display:none">{{ form_rest(form) }}</footer>