From e0bcbeaa84c2adf3b8a179cdea792dd58fa109b2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 1 Sep 2022 12:08:11 +0200 Subject: Geo: select geo item to display on the sheet --- ishtar_common/templates/base.html | 2 + .../templates/ishtar/blocks/sheet_coordinates.html | 28 ----------- .../templates/ishtar/blocks/sheet_geo_items.html | 48 ------------------ .../templates/ishtar/blocks/sheet_map.html | 57 ++++++++++++++++++---- 4 files changed, 50 insertions(+), 85 deletions(-) delete mode 100644 ishtar_common/templates/ishtar/blocks/sheet_coordinates.html delete mode 100644 ishtar_common/templates/ishtar/blocks/sheet_geo_items.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 8041452c6..12e8567a1 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -73,6 +73,8 @@ var YES = "{% trans 'yes' %}"; var NO = "{% trans 'no' %}"; var fetching_msg = "{% trans 'Fetching data...' %}"; + var base_maps_msg = "{% trans 'Base maps' %}"; + var layers_msg = "{% trans 'Layers' %}"; var stats_incompatible_modality = "{% trans 'This graph type accept only one modality.' %}"; var show_msg = "{% trans "Show" %}"; var entries_msg = "{% trans "entries" %}"; diff --git a/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html b/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html deleted file mode 100644 index 0093ed31f..000000000 --- a/ishtar_common/templates/ishtar/blocks/sheet_coordinates.html +++ /dev/null @@ -1,28 +0,0 @@ -{% 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 %} -
-
{% trans "Coordinates" %}
-
- {% with coordinates=geodata.display_coordinates %} - {% trans "X:"%} {{coordinates.0|default_if_none:"-"}} - {% if geodata.estimated_error_x %} ({% trans "error:" %} {{geodata.estimated_error_x}}){% endif %}, - {% trans "Y:"%} {{coordinates.1|default_if_none:"-"}} - {% if geodata.estimated_error_y %} ({% trans "error:" %} {{geodata.estimated_error_y}}){% endif %}, - {% endwith %} - {% 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 %} -
-
-{% 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 %} diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html deleted file mode 100644 index 12e4b4ef0..000000000 --- a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html +++ /dev/null @@ -1,48 +0,0 @@ -{% load i18n window_field %}{% if PROFILE.mapping %} -{% if geo_item.point_2d or geo_item.multi_polygon %} -
-
{% trans "Display geo items" %}
-
-
- {% if geo_item.SLUG == "operation" %} - - - {% endif %} - - -
-
-
- - -
-
- -{% endif %} -{% endif %} \ No newline at end of file diff --git a/ishtar_common/templates/ishtar/blocks/sheet_map.html b/ishtar_common/templates/ishtar/blocks/sheet_map.html index e0278b8c7..16e014b49 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_map.html @@ -1,22 +1,60 @@ -{% if PROFILE.mapping and geo_item.main_geodata %} +{% load i18n window_field %}{% if PROFILE.mapping and geo_item.main_geodata %} +{% with geodata_list=geo_item.geodata_list %}
+
+

{% trans "Geographic data" %}

+ +
+{% endwith %} {% endif %} -- cgit v1.2.3