]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/index.html.twig
Add recover form directly on login page when it failed
[airbundle] / Resources / views / location / index.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <section id="dashboard">
4 TODO:
5 <h2>{% trans %}Dashboard{% endtrans %}</h2>
6 <div class="panel">
7 {% if calendar is defined and calendar %}
8 <table class="grid">
9 <tbody>
10 <tr>
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 %}
15 <ul>
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>
19 </li>
20 {% endfor %}
21 </ul>
22 {% endif %}
23 </td>
24 {% if loop.index % 7 == 0 and not loop.last %}
25 </tr>
26 <tr>
27 {% endif %}
28 {% endfor %}
29 </tr>
30 </tbody>
31 </table>
32 {% endif %}
33 <div>
34 {{ form_start(form) }}
35
36 <header>{{ form_errors(form) }}</header>
37
38 <section>
39 {{ form_row(form.location) }}
40
41 {{ form_row(form.date) }}
42
43 {{ form_row(form.slot) }}
44 </section>
45
46 {{ form_row(form.submit) }}
47
48 {# Render CSRF token etc .#}
49 <footer style="display:none">
50 {{ form_rest(form) }}
51 </footer>
52
53 {{ form_end(form) }}
54 </div>
55 </div>
56 {# dump(calendar) #}
57 </section>
58 {% endblock %}