]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/admin/index.html.twig
Add skip on weather unavailable data when startup timeout makes us miss upstream...
[airbundle] / Resources / views / admin / index.html.twig
1 {% extends '@RapsysAir/base.html.twig' %}
2 {% block content %}
3 <section id="dashboard">
4 <h2>{% trans %}Dashboard{% endtrans %}</h2>
5 <div 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 <div>
33 {{ form_start(form) }}
34
35 <header>{{ form_errors(form) }}</header>
36
37 <section>
38 {{ form_row(form.location) }}
39
40 {{ form_row(form.date) }}
41
42 {{ form_row(form.slot) }}
43 </section>
44
45 {{ form_row(form.submit) }}
46
47 {# Render CSRF token etc .#}
48 <footer style="display:none">
49 {{ form_rest(form) }}
50 </footer>
51
52 {{ form_end(form) }}
53 </div>
54 </div>
55 {# dump(calendar) #}
56 </section>
57 {% endblock %}