]> Raphaƫl G. Git Repositories - airbundle/blob - Resources/views/default/_location.html.twig
Add confirm or recover link
[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].short) }}
25
26 {{ form_row(forms.snippets[id].rate) }}
27
28 {{ form_row(forms.snippets[id].hat) }}
29
30 {{ form_row(forms.snippets[id].contact) }}
31
32 {{ form_row(forms.snippets[id].donate) }}
33
34 {{ form_row(forms.snippets[id].link) }}
35
36 {{ form_row(forms.snippets[id].profile) }}
37
38 {{ form_row(forms.snippets[id].image) }}
39
40 {{ form_row(forms.snippets[id].submit) }}
41
42 {% if forms.snippets[id].delete is defined %}
43 {{ form_row(forms.snippets[id].delete) }}
44 {% endif %}
45 </div>
46
47 {# render csrf token etc .#}
48 <footer style="display:none">{{ form_rest(forms.snippets[id]) }}</footer>
49 {{ form_end(forms.snippets[id]) }}
50 {% endif %}
51 </article>
52 {% endfor %}
53 </div>
54 </div>
55 </article>
56 {% endif %}