- <div class="grid four">
- {% for id, title in locations %}
- <article class="cell">
- <h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
- {% if forms.snippets is defined and forms.snippets[id] is defined and forms.snippets[id] %}
- {{ form_start(forms.snippets[id]) }}
- <div>
- {{ form_row(forms.snippets[id].description) }}
-
- {{ form_row(forms.snippets[id].class) }}
+ {% 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.snippets is defined %}
+ <div class="grid">
+ {% for i, l in locations %}
+ <article class="cell{% if l.count is defined and l.count or location.id is defined and location.id == l.id or session.location.id is defined and session.location.id == l.id %} highlight{% endif %}">
+ <header>
+ {# TODO XXX virer le if l.link id defined when user view is fixed !!! #}
+ <h3><a href="{{ l.link }}">{% if multimap is defined and multimap %}{{ i }} {% endif %}{{ l.title }}</a></h3>
+ </header>
+ {% if forms.snippets[i] is defined and forms.snippets[i] %}
+ {{ form_start(forms.snippets[i]) }}
+ <div>
+ {% if forms.snippets[i].description is defined %}
+ {{ form_row(forms.snippets[i].description) }}
+ {% endif %}