From a0fdc09ccf429c1473775ff04e1643224d877e20 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 13 Jul 2023 10:30:03 +0200 Subject: 🐛 fix find redirection after geo item creation/modification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templates/ishtar/blocks/sheet_geographic.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html index eeb618bfe..c48811de0 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html @@ -16,7 +16,9 @@ {% for geo in geo_item.geodata.all %} {% if not IS_HISTORY and permission_change_geo %} - {% if geo|can_edit_item:request %}{% else %}–{% endif %} + {% autoescape off %} + {% if geo|can_edit_item:request %}{% else %}–{% endif %} + {% endautoescape %} {% endif %} {% if geo.id == geo_item.main_geodata_id %}{% else %}–{% endif %} {% if geo.data_type %}{{ geo.data_type }}{% else %}-{% endif %} @@ -27,9 +29,11 @@ {% if geo.provider %}{{ geo.provider }}{% else %}-{% endif %} {% if geo.comment %}{{ geo.comment }}{% else %}-{% endif %} {% if not IS_HISTORY and permission_change_geo and output != "ODT" and output != "PDF" %} + {% autoescape off %} + href="{% url 'delete-geo' geo.pk %}{% if search_url or find_id %}?{% endif %}{% if find_id %}find_id={{find_id|unlocalize}}&{% endif %}{% if search_url %}back_url={{search_url}}%3Fopen_item={{geo_item.pk|unlocalize}}{% endif %}"> {% if geo|can_edit_item:request %}{% else %}–{% endif %} + {% endautoescape %} {% endif %} {% endfor %} -- cgit v1.2.3