X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/5eaefbbc2e975fc4aee4e9897c39a7939046f22c..22ab06ae0ac4b9be42a4b9203341ed17b42d70d6:/Resources/views/default/_location.html.twig diff --git a/Resources/views/default/_location.html.twig b/Resources/views/default/_location.html.twig index 32e9b70..beca449 100644 --- a/Resources/views/default/_location.html.twig +++ b/Resources/views/default/_location.html.twig @@ -2,47 +2,119 @@ {% if locations is defined and locations %}
-

{% trans %}Locations{% endtrans %}

- {% if forms.snippets is defined %} +

{{ 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 %}
-
- {% for id, title in locations %} -
-

{{ title }}

- {% if forms.snippets is defined and forms.snippets[id] is defined and forms.snippets[id] %} - {{ form_start(forms.snippets[id]) }} -
- {{ form_row(forms.snippets[id].description) }} + {% 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 %} - {{ form_row(forms.snippets[id].class) }} + {% if forms.snippets[i].rate is defined %} + {{ form_row(forms.snippets[i].rate) }} + {% endif %} - {{ form_row(forms.snippets[id].contact) }} + {% if forms.snippets[i].hat is defined %} + {{ form_row(forms.snippets[i].hat) }} + {% endif %} - {{ form_row(forms.snippets[id].donate) }} + {% if forms.snippets[i].contact is defined %} + {{ form_row(forms.snippets[i].contact) }} + {% endif %} - {{ form_row(forms.snippets[id].link) }} + {% if forms.snippets[i].donate is defined %} + {{ form_row(forms.snippets[i].donate) }} + {% endif %} - {{ form_row(forms.snippets[id].profile) }} + {% if forms.snippets[i].link is defined %} + {{ form_row(forms.snippets[i].link) }} + {% endif %} - {{ form_row(forms.snippets[id].submit) }} + {% if forms.snippets[i].profile is defined %} + {{ form_row(forms.snippets[i].profile) }} + {% endif %} - {% if forms.snippets[id].delete is defined %} - {{ form_row(forms.snippets[id].delete) }} - {% 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.snippets[id]) }}
- {{ form_end(forms.snippets[id]) }} - {% endif %} -
- {% endfor %} -
+ {# render csrf token etc .#} +
{{ form_rest(forms.images[i]) }}
+ {{ form_end(forms.images[i]) }} + {% endif %} +
+ {% endfor %} +
+ {% else %} + + {% endif %}
{% endif %}