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