1 {% extends '@RapsysAir/body.html.twig' %}
3 <article id="dashboard" class="location">
5 <h2>{{ description }}</h2>
8 {% if locations is defined and locations %}
9 {% if multimap is defined and multimap %}
10 <div class="multimap">
11 <a href="{{ multimap.link }}" title="{{ multimap.caption }}">
13 <img src="{{ multimap.src }}" alt="{{ multimap.caption }}"{# width="{{ multimap.width }}" height="{{ multimap.height }}" #} />
14 <figcaption>{{ multimap.caption }}</figcaption>
19 {% if forms.locations is defined %}
20 <div class="grid{% if locations|length > 1%} two{% endif %}">
21 {% for id, location in locations %}
22 <article class="cell">
24 <h3>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}" title="{{ location.title }}">{{ location.title }}</a></h3>
26 {% if forms.locations[id] is defined and forms.locations[id] %}
27 {{ form_start(forms.locations[id]) }}
29 {{ form_row(forms.locations[id].title) }}
31 {{ form_row(forms.locations[id].description) }}
33 {{ form_row(forms.locations[id].address) }}
35 {{ form_row(forms.locations[id].zipcode) }}
37 {{ form_row(forms.locations[id].city) }}
39 {{ form_row(forms.locations[id].latitude) }}
41 {{ form_row(forms.locations[id].longitude) }}
43 {{ form_row(forms.locations[id].indoor) }}
45 {{ form_row(forms.locations[id].hotspot) }}
47 {{ form_row(forms.locations[id].submit) }}
50 {# render csrf token etc .#}
51 <footer style="display:none">{{ form_rest(forms.locations[id]) }}</footer>
52 {{ form_end(forms.locations[id]) }}
58 <ul class="grid{% if locations|length > 2%} three{% elseif locations|length > 1%} two{% endif %}">
59 {% for id, location in locations %}
60 <li>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}" title="{{ location.title }}">{{ location.title }}</a></li>
65 {{ include('@RapsysAir/form/_toolbox.html.twig') }}