]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/location/index.html.twig
Rename RapsysAirBundle:GroupUser to RapsysAirBundle:UserGroup
[airbundle] / Resources / views / location / index.html.twig
1 {% extends '@RapsysAir/body.html.twig' %}
2 {% block content %}
3 <article id="dashboard" class="location">
4 <header>
5 <h2><a href="{{ canonical }}">{{ title }}</a></h2>
6 <p>{{ description }}</p>
7 </header>
8 <div class="panel">
9 {% if locations is defined and locations %}
10 <div class="grid{% if locations|length > 2%} three{% elseif locations|length > 1%} two{% endif %}">
11 {% if multimap is defined and multimap %}
12 <div class="multimap">
13 <a href="{{ multimap.link }}" title="{{ multimap.caption }}">
14 <figure>
15 <img src="{{ multimap.src }}" alt="{{ multimap.caption }}"{# width="{{ multimap.width }}" height="{{ multimap.height }}" #} />
16 <figcaption>{{ multimap.caption }}</figcaption>
17 </figure>
18 </a>
19 </div>
20 {% endif %}
21 {% for id, location in locations %}
22 <article class="cell">
23 <h3>{% if multimap is defined and multimap %}{{ id }} {% endif %}<a href="{{ location.link }}" title="{{ location.title }}">{{ location.title }}</a></h3>
24 {% if forms.locations is defined and forms.locations[id] is defined and forms.locations[id] %}
25 {{ form_start(forms.locations[id]) }}
26 <div>
27 {{ form_row(forms.locations[id].title) }}
28
29 {{ form_row(forms.locations[id].description) }}
30
31 {{ form_row(forms.locations[id].address) }}
32
33 {{ form_row(forms.locations[id].zipcode) }}
34
35 {{ form_row(forms.locations[id].city) }}
36
37 {{ form_row(forms.locations[id].latitude) }}
38
39 {{ form_row(forms.locations[id].longitude) }}
40
41 {{ form_row(forms.locations[id].indoor) }}
42
43 {{ form_row(forms.locations[id].hotspot) }}
44
45 {{ form_row(forms.locations[id].submit) }}
46 </div>
47
48 {# render csrf token etc .#}
49 <footer style="display:none">{{ form_rest(forms.locations[id]) }}</footer>
50 {{ form_end(forms.locations[id]) }}
51 {% endif %}
52 </article>
53 {% endfor %}
54 </div>
55 {% endif %}
56 {{ include('@RapsysAir/form/_toolbox.html.twig') }}
57 </div>
58 </article>
59 {% endblock %}