]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/cities.html.twig
Add locale member
[airbundle] / Resources / views / location / cities.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <article id="dashboard" class="city">
4 <header>
5 <h2>{{ description }}</h2>
6 </header>
7 <div class="panel">
8 {% if cities is defined and cities %}
9 <div class="grid{% if cities|length > 1%} two{% endif %}">
10 {% for id, city in cities %}
11 <article class="cell">
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{% if city.locations|length > 1 %} two{% endif %}">
27 {% for id, location in city.locations %}
28 <li>{% if city.multimap is defined and city.multimap %}{{ id }} {% endif %}<a href="{{ location.link }}">{{ 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 %}