1 {% extends '@RapsysAir/body.html.twig' %}
 
   3 <section id="dashboard">
 
   5         <h2>{% trans %}Dashboard{% endtrans %}</h2>
 
   7                 {% if calendar is defined and calendar %}
 
  11                                                 {% for date, day in calendar %}
 
  12                                                         <td class="{{ ['cell', 'seventh']|merge(day.class)|join(' ') }}">
 
  13                                                                 <h3>{{ day.title }}</h3>
 
  14                                                                 {% if day.sessions is not empty %}
 
  16                                                                                 {% for session in day.sessions %}
 
  17                                                                                         <li class="{{ ['session']|merge(session.class)|join(' ') }}">
 
  18                                                                                                 <a href="{{ path('rapsys_air_session', {'id': session.id}) }}" title="{{ session.title }}">{{ session.title }}</a>
 
  24                                                         {% if loop.index % 7 == 0 and not loop.last %}
 
  34                 {{ form_start(form) }}
 
  36                         <header>{{ form_errors(form) }}</header>
 
  39                                 {{ form_row(form.location) }}
 
  41                                 {{ form_row(form.date) }}
 
  43                                 {{ form_row(form.slot) }}
 
  46                         {{ form_row(form.submit) }}
 
  48                         {# Render CSRF token etc .#}
 
  49                         <footer style="display:none">