From eb266aa70f7b906dd15c7966856921d0f5e3e437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 16 May 2020 13:56:56 +0200 Subject: [PATCH] toodego: init "autour de moi" map with a distance filter --- .../variants/toodego/combo/cells/recherche/map_cell.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/variants/toodego/combo/cells/recherche/map_cell.html b/templates/variants/toodego/combo/cells/recherche/map_cell.html index 36523144..aa57f463 100644 --- a/templates/variants/toodego/combo/cells/recherche/map_cell.html +++ b/templates/variants/toodego/combo/cells/recherche/map_cell.html @@ -1,6 +1,11 @@ {% extends "maps/map_cell.html" %} {% load gnm %} +{% block map-attributes %} +{{ block.super }} +{% if cell.page.slug == 'autour-de-moi' %}data-query-string="distance=1000&lat={{init_lat}}&lng={{init_lng}}"{% endif %} +{% endblock %} + {% block cell-content %}