summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-06-08 15:43:24 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-06-08 15:46:43 +0200
commite553dcaf59aedf91aeb5d0e830ff171dce36d353 (patch)
tree95291c8eb45a4dee8278deebb89ab93a7bcaf745 /ishtar_common
parenta27b447ae2c9afc73078dd9aedd7709145e1d537 (diff)
downloadIshtar-e553dcaf59aedf91aeb5d0e830ff171dce36d353.tar.bz2
Ishtar-e553dcaf59aedf91aeb5d0e830ff171dce36d353.zip
✨ Sheet: display coordinates of points
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_map.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_map.html b/ishtar_common/templates/ishtar/blocks/sheet_map.html
index a7db9c35f..8dbf008f8 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_map.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_map.html
@@ -25,7 +25,19 @@
>
&nbsp; <label for="map-ol-{{geo_item.SLUG}}-{{geo_item.pk}}-{{geodata.pk}}">
<strong>{% if geodata.data_type %}{{geodata.data_type}}{% else %}{{geodata.name}}{% endif %}</strong></label><br/>
+ {% if geodata.geometry_type == "POINT" %}{% with coordinates=geodata.display_coordinates_3d %}
{% if geodata.data_type %}{{geodata.name}}{% endif %}
+ <br><span>
+ {% if coordinates.0 != None %}
+ <strong>{% trans "X:" %}</strong> {{coordinates.0}} ;
+ <strong>{% trans "Y:" %}</strong> {{coordinates.1}}
+ {% endif %}
+ {% if coordinates.2 != None %}
+ {% if coordinates.0 != None %}; {% endif %}
+ <strong>{% trans "Z:" %}</strong> {{coordinates.2}}
+ {% endif %}
+ {% endwith %}{% endif %}
+ </span>
</li>{% endfor %}
{% if geo_item.SLUG == "operation" and display_context_records %}
<li>