1 {# Display locations calendar #}
2 {% if locations is defined and locations %}
3 <article class="location">
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>
9 <p>{% trans %}Libre Air location list{% endtrans %}</p>
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]) }}
20 {{ form_row(forms.snippets[id].description) }}
22 {{ form_row(forms.snippets[id].class) }}
24 {{ form_row(forms.snippets[id].contact) }}
26 {{ form_row(forms.snippets[id].donate) }}
28 {{ form_row(forms.snippets[id].link) }}
30 {{ form_row(forms.snippets[id].profile) }}
32 {{ form_row(forms.snippets[id].submit) }}
34 {% if forms.snippets[id].delete is defined %}
35 {{ form_row(forms.snippets[id].delete) }}
39 {# render csrf token etc .#}
40 <footer style="display:none">{{ form_rest(forms.snippets[id]) }}</footer>
41 {{ form_end(forms.snippets[id]) }}