From 7940a5e8379f822da0514e3f9068f9b3221331e3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 6 Feb 2019 19:08:42 +0100 Subject: Sheet - Map: WIP - manage vector source for polygons --- .../templates/ishtar/sheet_basefind.html | 39 +++++++++++++--------- 1 file changed, 24 insertions(+), 15 deletions(-) (limited to 'archaeological_finds/templates') diff --git a/archaeological_finds/templates/ishtar/sheet_basefind.html b/archaeological_finds/templates/ishtar/sheet_basefind.html index 7ea16fecb..74a2b527e 100644 --- a/archaeological_finds/templates/ishtar/sheet_basefind.html +++ b/archaeological_finds/templates/ishtar/sheet_basefind.html @@ -45,9 +45,31 @@ {% field_flex_full "Description" base_find.description "
" "
" first %} {% field_flex_full "Comment" base_find.comment "
" "
" first %} +

{% trans "Sheet"%}

+
+ {% with item.history_creation_date|date:"SHORT_DATETIME_FORMAT" as creation_date %} + {% with item.history_creator.ishtaruser.full_label|add:"
"|add:creation_date|add:"" as creator %} + {% field_flex "Created by" creator|safe '' '' first %} + {% endwith %}{% endwith %} + {% if item.history_creation_date != item.last_edition_date %} + {% with item.last_edition_date|date:"SHORT_DATETIME_FORMAT" as edition_date %} + {% with item.history_modifier.ishtaruser.full_label|add:"
"|add:edition_date|add:"" as modifier %} + {% trans "Last modified by" as lastmodifiedby_label %} + {% field_flex lastmodifiedby_label modifier|safe '' '' first %} + {% endwith %}{% endwith %} + {% endif %} +
+ {% if base_find.point_2d or base_find.x or base_find.y or base_find.topographic_localisation %} + {% if base_find.point_2d %} +
+
+ {% endif %} +

{% trans "Map"%}

+ {% with geo_item=base_find %} + {% include "ishtar/blocks/sheet_simple_map.html"%} + {% endwith %} {% if base_find.x or base_find.y or base_find.topographic_localisation %} -

{% trans "Coordinates"%}

{% field_flex "Point of topographic reference" base_find.topographic_localisation %}
@@ -67,19 +89,6 @@
{% endif %} -

{% trans "Sheet"%}

-
- {% with item.history_creation_date|date:"SHORT_DATETIME_FORMAT" as creation_date %} - {% with item.history_creator.ishtaruser.full_label|add:"
"|add:creation_date|add:"" as creator %} - {% field_flex "Created by" creator|safe '' '' first %} - {% endwith %}{% endwith %} - {% if item.history_creation_date != item.last_edition_date %} - {% with item.last_edition_date|date:"SHORT_DATETIME_FORMAT" as edition_date %} - {% with item.history_modifier.ishtaruser.full_label|add:"
"|add:edition_date|add:"" as modifier %} - {% trans "Last modified by" as lastmodifiedby_label %} - {% field_flex lastmodifiedby_label modifier|safe '' '' first %} - {% endwith %}{% endwith %} - {% endif %} -
+ {% endif %} -- cgit v1.2.3