{# Display locations calendar #} {% if locations is defined and locations %}

{{ locations_title }}

{% if locations_description is defined %}

{{ locations_description }}

{% elseif forms.snippets is defined %}

{% trans %}Organizer's snippet by dance space{% endtrans %}

{% else %}

{% trans %}Libre Air location list{% endtrans %}

{% endif %}
{% if multimap is defined and multimap %} {% endif %} {% if forms.snippets is defined %}
{% for i, l in locations %}
{# TODO XXX virer le if l.link id defined when user view is fixed !!! #}

{% if multimap is defined and multimap %}{{ i }} {% endif %}{{ l.title }}

{% if forms.snippets[i] is defined and forms.snippets[i] %} {{ form_start(forms.snippets[i]) }}
{% if forms.snippets[i].description is defined %} {{ form_row(forms.snippets[i].description) }} {% endif %} {% if forms.snippets[i].class is defined %} {{ form_row(forms.snippets[i].class) }} {% endif %} {% if forms.snippets[i].short is defined %} {{ form_row(forms.snippets[i].short) }} {% endif %} {% if forms.snippets[i].rate is defined %} {{ form_row(forms.snippets[i].rate) }} {% endif %} {% if forms.snippets[i].hat is defined %} {{ form_row(forms.snippets[i].hat) }} {% endif %} {% if forms.snippets[i].contact is defined %} {{ form_row(forms.snippets[i].contact) }} {% endif %} {% if forms.snippets[i].donate is defined %} {{ form_row(forms.snippets[i].donate) }} {% endif %} {% if forms.snippets[i].link is defined %} {{ form_row(forms.snippets[i].link) }} {% endif %} {% if forms.snippets[i].profile is defined %} {{ form_row(forms.snippets[i].profile) }} {% endif %} {{ form_row(forms.snippets[i].submit) }}
{# render csrf token etc .#}
{{ form_rest(forms.snippets[i]) }}
{{ form_end(forms.snippets[i]) }} {% endif %} {% if l.image is defined and l.image %} {% endif %} {% if forms.images is defined and forms.images[i] is defined and forms.images[i] %} {{ form_start(forms.images[i]) }}
{% if forms.images[i].image is defined %} {{ form_row(forms.images[i].image) }} {% endif %} {{ form_row(forms.images[i].submit) }} {% if forms.images[i].delete is defined %} {{ form_row(forms.images[i].delete) }} {% endif %}
{# render csrf token etc .#}
{{ form_rest(forms.images[i]) }}
{{ form_end(forms.images[i]) }} {% endif %}
{% endfor %}
{% else %} {% endif %}
{% endif %}