X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/c1837dbbb99ef2c4ce2ad04ff967aa936a26e4db..a260fe7b849a7d64ee977012b28ddbb738727010:/Resources/views/default/_location.html.twig diff --git a/Resources/views/default/_location.html.twig b/Resources/views/default/_location.html.twig index cefe028..beca449 100644 --- a/Resources/views/default/_location.html.twig +++ b/Resources/views/default/_location.html.twig @@ -2,53 +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 %} - {{ form_row(forms.snippets[id].class) }} + {% if forms.snippets[i].class is defined %} + {{ form_row(forms.snippets[i].class) }} + {% endif %} - {{ form_row(forms.snippets[id].short) }} + {% if forms.snippets[i].short is defined %} + {{ form_row(forms.snippets[i].short) }} + {% endif %} - {{ form_row(forms.snippets[id].rate) }} + {% 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].image) }} + {% if forms.snippets[i].profile is defined %} + {{ form_row(forms.snippets[i].profile) }} + {% endif %} - {{ form_row(forms.snippets[id].submit) }} + {{ form_row(forms.snippets[i].submit) }} +
- {% if forms.snippets[id].delete is defined %} - {{ form_row(forms.snippets[id].delete) }} - {% endif %} + {# 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) }} - {# render csrf token etc .#} -
{{ form_rest(forms.snippets[id]) }}
- {{ form_end(forms.snippets[id]) }} - {% endif %} -
- {% endfor %} -
+ {% 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 %}