From fb52b46644c444b7893fb8299672320df232bb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 22 Jul 2022 08:59:07 +0200 Subject: [PATCH] toodego: add cinema tile (#66875) --- .../variants/toodego/combo/json/cinema.html | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 templates/variants/toodego/combo/json/cinema.html diff --git a/templates/variants/toodego/combo/json/cinema.html b/templates/variants/toodego/combo/json/cinema.html new file mode 100644 index 00000000..532b54d9 --- /dev/null +++ b/templates/variants/toodego/combo/json/cinema.html @@ -0,0 +1,65 @@ +{% load combo gnm l10n assets %} +{% with cinema=json.features.0 is_place_page=page|is_place_page place_page=cell|place_page %} + {% get_tile_picture_size page as size %} +
+ {% if is_place_page %} + {% placeholder "infos-pratiques" name="Infos pratiques" render=False %} + {% placeholder "galerie" name="Galerie photos" render=False %} +
+ {% else %} +
+ {% endif %} +
+
+

{{cinema.properties.nom}}

+ {% with producer=cinema.properties.address.addressLocality|as_producer %} + {{ producer.label }} + {% endwith %} +
+
+ {% include "combo/dashboard_cell_icons.html" %} + {% if is_place_page %} +
+ +
+ {% include "combo/json/includes/share.html" with place=cinema url=cell|place_page_url %} + {% placeholder "infos-pratiques" %} +
+ +
+ {% include "combo/json/includes/adresse.html" with place=cinema %} + + {% if cinema.properties.telephone %} +
+

Téléphone

+
{{cinema.properties.telephone}}
+ Appeler +
+ {% endif %} + + {% include "combo/json/includes/horaires.html" with place=cinema %} + +
+ + {% gnm_place_map cinema.geometry.coordinates.1 cinema.geometry.coordinates.0 %} + + {% placeholder "galerie" %} + +
+ {% else %} +
+ {{cinema.properties.address.streetAddress}} +
+   +
+
+ {% localize off %} + M’y rendre + {% endlocalize %} + {% if cinema.properties.url %} + Voir le site + {% endif %} +
+ {% endif %} +
+{% endwith %}