From c8d8bb377ab9bc080998ded1ba98777bae3ae7a6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 18 Sep 2022 21:53:45 +0200 Subject: Geo form - redirect to source item after edit --- ishtar_common/templates/ishtar/blocks/sheet_geographic.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html index d1ac63815..295c7ef46 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html @@ -1,4 +1,5 @@ {% load i18n ishtar_helpers window_field %} +{% with search_url=item.get_search_url %} {% if permission_change_geo %}{% endif %} @@ -14,7 +15,7 @@ {% for geo in geo_item.geodata.all %} {% if permission_change_geo %} - + {% endif %} @@ -29,6 +30,7 @@
 
{% if geo|can_edit_item:request %}{% else %}–{% endif %}{% if geo|can_edit_item:request %}{% else %}–{% endif %}{% if geo.id == geo_item.main_geodata_id %}{% else %}–{% endif %} {% if geo.data_type %}{{ geo.data_type }}{% else %}-{% endif %}
{% if permission_change_geo %}
-  {% trans "geo item" %} +  {% trans "geo item" %}
{% endif %} +{% endwith %} \ No newline at end of file -- cgit v1.2.3