From 7a943bc0d48763bfac7d4a0c5b563e26dfd8cc0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Thu, 13 Oct 2022 14:53:39 +0200 Subject: [PATCH 1/1] Add cities layout fragment --- Resources/views/default/_city.html.twig | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Resources/views/default/_city.html.twig diff --git a/Resources/views/default/_city.html.twig b/Resources/views/default/_city.html.twig new file mode 100644 index 0000000..e03c14c --- /dev/null +++ b/Resources/views/default/_city.html.twig @@ -0,0 +1,46 @@ +{# Display cities #} +{% if cities is defined and cities %} +
+
+

{% trans %}Cities{% endtrans %}

+

{% trans %}Libre Air city list{% endtrans%} +

+
+ {% if multimap is defined and multimap %} + + {% endif %} +
+ {% for id, city in cities %} +
+
+

{{ city.city }} ({{ city.id }})

+
+ {# {% if city.locations is defined and city.locations %} +
+ {% for id, location in city.locations %} + + {% endfor %} +
+ {% endif %} #} + {% if city.locations is defined and city.locations %} +
    + {% for id, location in city.locations %} +
  • {% if multimap is defined and multimap %}{{ id }} {% endif %}{{ location.title }}
  • + {% endfor %} +
+ {% endif %} +
+ {% endfor %} +
+
+
+{% endif %} -- 2.41.1