]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/index.html.twig
Remove googleScopes const
[airbundle] / Resources / views / location / index.html.twig
1 {% extends '@RapsysAir/base.html.twig' %}
2 {% block content %}
3 <article id="dashboard" class="location">
4 <header>
5 <h2>{{ description }}</h2>
6 </header>
7 <div class="panel">
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 }}">
12 <figure>
13 <img src="{{ multimap.src }}" alt="{{ multimap.caption }}"{# width="{{ multimap.width }}" height="{{ multimap.height }}" #} />
14 <figcaption>{{ multimap.caption }}</figcaption>
15 </figure>
16 </a>
17 </div>
18 {% endif %}
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">
23 <header>
24 <h3>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}" title="{{ location.title }}">{{ location.title }}</a></h3>
25 </header>
26 {% if forms.locations[id] is defined and forms.locations[id] %}
27 {{ form_start(forms.locations[id]) }}
28 <div>
29 {{ form_row(forms.locations[id].title) }}
30
31 {{ form_row(forms.locations[id].description) }}
32
33 {{ form_row(forms.locations[id].address) }}
34
35 {{ form_row(forms.locations[id].zipcode) }}
36
37 {{ form_row(forms.locations[id].city) }}
38
39 {{ form_row(forms.locations[id].latitude) }}
40
41 {{ form_row(forms.locations[id].longitude) }}
42
43 {{ form_row(forms.locations[id].indoor) }}
44
45 {{ form_row(forms.locations[id].hotspot) }}
46
47 {{ form_row(forms.locations[id].submit) }}
48 </div>
49
50 {# render csrf token etc .#}
51 <footer style="display:none">{{ form_rest(forms.locations[id]) }}</footer>
52 {{ form_end(forms.locations[id]) }}
53 {% endif %}
54 </article>
55 {% endfor %}
56 </div>
57 {% else %}
58 <ul class="grid{% if 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>
61 {% endfor %}
62 </ul>
63 {% endif %}
64 {% endif %}
65 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
66 </div>
67 </article>
68 {% endblock %}