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].short) }}
 
  26                                                                         {{ form_row(forms.snippets[id].rate) }}
 
  28                                                                         {{ form_row(forms.snippets[id].hat) }}
 
  30                                                                         {{ form_row(forms.snippets[id].contact) }}
 
  32                                                                         {{ form_row(forms.snippets[id].donate) }}
 
  34                                                                         {{ form_row(forms.snippets[id].link) }}
 
  36                                                                         {{ form_row(forms.snippets[id].profile) }}
 
  38                                                                         {{ form_row(forms.snippets[id].image) }}
 
  40                                                                         {{ form_row(forms.snippets[id].submit) }}
 
  42                                                                         {% if forms.snippets[id].delete is defined %}
 
  43                                                                                 {{ form_row(forms.snippets[id].delete) }}
 
  47                                                                 {# render csrf token etc .#}
 
  48                                                                 <footer style="display:none">{{ form_rest(forms.snippets[id]) }}</footer>
 
  49                                                         {{ form_end(forms.snippets[id]) }}