32e9b702ede085d3a82da47f837b0bc21b9ff6a7
[airbundle] / Resources / views / default / _location.html.twig
1 {# Display locations calendar #}
2 {% if locations is defined and locations %}
3 <article class="location">
4 <header>
5 <h2><a href="{{ path('rapsys_air_location') }}">{% trans %}Locations{% endtrans %}</a></h2>
6 {% if forms.snippets is defined %}
7 <p>{% trans %}Organizer's snippet by dance space{% endtrans %}</p>
8 {% else %}
9 <p>{% trans %}Libre Air location list{% endtrans %}</p>
10 {% endif %}
11 </header>
12 <div class="panel">
13 <div class="grid four">
14 {% for id, title in locations %}
15 <article class="cell">
16 <h3><a href="{{ path('rapsys_air_location_view', {'id': id}) }}">{{ title }}</a></h3>
17 {% if forms.snippets is defined and forms.snippets[id] is defined and forms.snippets[id] %}
18 {{ form_start(forms.snippets[id]) }}
19 <div>
20 {{ form_row(forms.snippets[id].description) }}
21
22 {{ form_row(forms.snippets[id].class) }}
23
24 {{ form_row(forms.snippets[id].contact) }}
25
26 {{ form_row(forms.snippets[id].donate) }}
27
28 {{ form_row(forms.snippets[id].link) }}
29
30 {{ form_row(forms.snippets[id].profile) }}
31
32 {{ form_row(forms.snippets[id].submit) }}
33
34 {% if forms.snippets[id].delete is defined %}
35 {{ form_row(forms.snippets[id].delete) }}
36 {% endif %}
37 </div>
38
39 {# render csrf token etc .#}
40 <footer style="display:none">{{ form_rest(forms.snippets[id]) }}</footer>
41 {{ form_end(forms.snippets[id]) }}
42 {% endif %}
43 </article>
44 {% endfor %}
45 </div>
46 </div>
47 </article>
48 {% endif %}