diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-17 12:34:47 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:17 +0100 |
commit | bb2e5296e89ba924cc1e5e361e7dd53067676bbf (patch) | |
tree | cdcf9ae5ebc01a0fb92a9262ee498e78ea05adc5 /ishtar_common/templates | |
parent | 018e9911bba93d37515ee9c1e740a004cb3589bc (diff) | |
download | Ishtar-bb2e5296e89ba924cc1e5e361e7dd53067676bbf.tar.bz2 Ishtar-bb2e5296e89ba924cc1e5e361e7dd53067676bbf.zip |
Geo - sheet: fix coordinates display
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_coordinates.html | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html b/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html index dbcecef8c..0093ed31f 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html @@ -1,27 +1,28 @@ -{% load i18n window_field %}{% if PROFILE.mapping %} -{% if geo_item.x or geo_item.y or geo_item.z %} +{% load i18n window_field %}{% if PROFILE.mapping and geo_item.main_geodata %} +{% with geodata=geo_item.main_geodata %} +{% if geodata.cached_x or geodata.cached_z %} <dl class="col-12"> <dt>{% trans "Coordinates" %}</dt> <dd> - {% with coordinates=geo_item.display_coordinates %} + {% with coordinates=geodata.display_coordinates %} {% trans "X:"%} {{coordinates.0|default_if_none:"-"}} - {% if geo_item.estimated_error_x %} ({% trans "error:" %} {{geo_item.estimated_error_x}}){% endif %}, + {% if geodata.estimated_error_x %} ({% trans "error:" %} {{geodata.estimated_error_x}}){% endif %}, {% trans "Y:"%} {{coordinates.1|default_if_none:"-"}} - {% if geo_item.estimated_error_y %} ({% trans "error:" %} {{geo_item.estimated_error_y}}){% endif %}, + {% if geodata.estimated_error_y %} ({% trans "error:" %} {{geodata.estimated_error_y}}){% endif %}, {% endwith %} - {% trans "Z:"%} {{geo_item.z|default_if_none:"-"}} - {% if geo_item.estimated_error_z %} ({% trans "error:" %} {{geo_item.estimated_error_z}}){% endif %} - {% with srs=geo_item.display_spatial_reference_system %} + {% trans "Z:"%} {{geodata.z|default_if_none:"-"}} + {% if geodata.estimated_error_z %} ({% trans "error:" %} {{geodata.estimated_error_z}}){% endif %} + {% with srs=geodata.display_spatial_reference_system %} {% if srs %} – {{srs.label}} - {% trans "SRID"%} {{srs.srid}} {% endif %} {% endwith %} </dd> </dl> -{% if geo_item.most_precise_geo == 'point' %} -{% trans "Point source" as point_source %} -{% field_flex_full point_source geo_item.geo_point_source %} -{% else %} -{% trans "Polygon source" as polygon_source %} -{% field_flex_full polygon_source geo_item.geo_polygon_source %} -{% endif %} +{% field_flex_full "Data type" geodata.data_type %} +{% field_flex_full "Source" geodata.source_label %} +{% field_flex_full "Name" geodata.name %} +{% field_flex_full "Origin" geodata.origin %} +{% field_flex_full "Provider" geodata.provider %} +{% field_flex_full "Comment" geodata.comment %} {% endif %} +{% endwith %} {% endif %} |