]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/index.html.twig
Rename ROLE_USER to User
[airbundle] / Resources / views / location / index.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="dashboard">
4 <h2>{% trans %}Dashboard{% endtrans %}</h2>
5 <section class="panel">
6 {% if calendar is defined and calendar %}
7 <table class="grid">
8 <tbody>
9 <tr>
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 %}
14 <ul>
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>
18 </li>
19 {% endfor %}
20 </ul>
21 {% endif %}
22 </td>
23 {% if loop.index % 7 == 0 and not loop.last %}
24 </tr>
25 <tr>
26 {% endif %}
27 {% endfor %}
28 </tr>
29 </tbody>
30 </table>
31 {% endif %}
32 {# Display application or login form #}
33 {% if is_granted('ROLE_GUEST') %}
34 <section>
35 {{ include('@RapsysAir/form/_application.html.twig') }}
36 </section>
37 {% elseif not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
38 <section>
39 {{ include('@RapsysAir/form/_login.html.twig') }}
40 </section>
41 {% endif %}
42 </section>
43 {# dump(calendar) #}
44 </section>
45 {% endblock %}