1 {% extends '@RapsysAir/body.html.twig' %}
3 <section id="dashboard">
4 <h2>{% trans %}Dashboard{% endtrans %}</h2>
5 <section class="panel">
6 {% if calendar is defined and calendar %}
10 {% for date, day in calendar %}
11 <td class="{{ ['cell', 'seventh']|merge(day.class)|join(' ') }}">
12 <h3>{{ day.title }}</h3>
13 {% if day.sessions is not empty %}
15 {% for session in day.sessions %}
16 <li class="{{ ['session']|merge(session.class)|join(' ') }}">
17 <a href="{{ path('rapsys_air_session', {'id': session.id}) }}" title="{{ session.title }}">{{ session.title }}</a>
23 {% if loop.index % 7 == 0 and not loop.last %}
32 {# Display application or login form #}
33 {% if is_granted('ROLE_GUEST') %}
35 {{ include('@RapsysAir/form/_application.html.twig') }}
37 {% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
39 {{ include('@RapsysAir/form/_login.html.twig') }}