]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/cities.html.twig
Add dance and user collection transformer
[airbundle] / Resources / views / location / cities.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <article>
4 <header>
5 <h2>{{ description }}</h2>
6 </header>
7 <div class="panel">
8 {% if cities is defined and cities %}
9 <div class="grid">
10 {% for id, city in cities %}
11 <article>
12 <header>
13 <h3><a href="{{ city.link }}">{{ city.city }} ({{ city.id }})</a></h3>
14 </header>
15 <div class="panel">
16 {% if city.multimap is defined and city.multimap %}
17 <div class="multimap">
18 <a href="{{ city.multimap.link }}" title="{{ city.multimap.caption }}">
19 <figure>
20 <img src="{{ city.multimap.src }}" alt="{{ city.multimap.caption }}" width="{{ city.multimap.width }}" height="{{ city.multimap.height }}" />
21 <figcaption>{{ city.multimap.caption }}</figcaption>
22 </figure>
23 </a>
24 </div>
25 {% endif %}
26 <ul class="grid">
27 {% for id, location in city.locations %}
28 <li><a href="{{ location.link }}">{% if city.multimap is defined and city.multimap %}{{ id }} {% endif %}{{ location.title }}</a></li>
29 {% endfor %}
30 </ul>
31 </div>
32 </article>
33 {% endfor %}
34 </div>
35 {% endif %}
36 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
37 </div>
38 </article>
39 {% endblock %}