- <div class="grid four location">
- {% for id, title in locations %}
- <article class="cell">
- <h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
- {% if forms.locations is defined and forms.locations[id] is defined and forms.locations[id] %}
- {{ form_start(forms.locations[id]) }}
- <div>
- {{ form_row(forms.locations[id].title) }}
+ {% if locations is defined and locations %}
+ {% if multimap is defined and multimap %}
+ <div class="multimap">
+ <a href="{{ multimap.link }}" title="{{ multimap.caption }}">
+ <figure>
+ <img src="{{ multimap.src }}" alt="{{ multimap.caption }}"{# width="{{ multimap.width }}" height="{{ multimap.height }}" #} />
+ <figcaption>{{ multimap.caption }}</figcaption>
+ </figure>
+ </a>
+ </div>
+ {% endif %}
+ {% if forms.locations is defined %}
+ <div class="grid{% if locations|length > 1%} two{% endif %}">
+ {% for id, location in locations %}
+ <article class="cell">
+ <header>
+ <h3>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}" title="{{ location.title }}">{{ location.title }}</a></h3>
+ </header>
+ {% if forms.locations[id] is defined and forms.locations[id] %}
+ {{ form_start(forms.locations[id]) }}
+ <div>
+ {{ form_row(forms.locations[id].title) }}