From 12de821ded4f964c89d1ac758701bcaf4750e7de Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 9 May 2022 13:16:58 +0200 Subject: Geodata: filter edit permissions for geo items --- 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 c5a413cc6..69cd67fcc 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_geographic.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_geographic.html @@ -1,4 +1,4 @@ -{% load i18n window_field %} +{% load i18n ishtar_helpers window_field %} {% if permission_change_geo %}{% endif %} @@ -13,7 +13,9 @@ {% for geo in geo_item.geodata.all %} - {% if permission_change_geo %}{% endif %} + {% if permission_change_geo %} + + {% endif %} -- cgit v1.2.3
 
{% 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 %} {{ geo.source_label }}