diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2019-02-06 19:08:42 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:56 +0200 |
commit | b45b4353785924420078aad98ef5fb0fb26336fe (patch) | |
tree | 40856bb52074133833bb506a57118d11b96a0dfa /archaeological_finds/templates | |
parent | 22a582672453c5ffcc1cd559e83414af1d2fe08c (diff) | |
download | Ishtar-b45b4353785924420078aad98ef5fb0fb26336fe.tar.bz2 Ishtar-b45b4353785924420078aad98ef5fb0fb26336fe.zip |
Sheet - Map: WIP - manage vector source for polygons
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_basefind.html | 39 |
1 files changed, 24 insertions, 15 deletions
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 "<pre>" "</pre>" first %} {% field_flex_full "Comment" base_find.comment "<pre>" "</pre>" first %} </div> + <h3>{% trans "Sheet"%}</h3> + <div class='row'> + {% with item.history_creation_date|date:"SHORT_DATETIME_FORMAT" as creation_date %} + {% with item.history_creator.ishtaruser.full_label|add:"<br/><i>"|add:creation_date|add:"</i>" 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:"<br/><i>"|add:edition_date|add:"</i>" as modifier %} + {% trans "Last modified by" as lastmodifiedby_label %} + {% field_flex lastmodifiedby_label modifier|safe '' '' first %} + {% endwith %}{% endwith %} + {% endif %} + </div> + {% if base_find.point_2d or base_find.x or base_find.y or base_find.topographic_localisation %} + {% if base_find.point_2d %} + <div class="clearfix"> + </div> + {% endif %} + <h3>{% trans "Map"%}</h3> + {% 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 %} - <h3>{% trans "Coordinates"%}</h3> <div class='row'> {% field_flex "Point of topographic reference" base_find.topographic_localisation %} <dl class="col-12 d-flex flex-wrap row"> @@ -67,19 +89,6 @@ </dl> </div> {% endif %} - <h3>{% trans "Sheet"%}</h3> - <div class='row'> - {% with item.history_creation_date|date:"SHORT_DATETIME_FORMAT" as creation_date %} - {% with item.history_creator.ishtaruser.full_label|add:"<br/><i>"|add:creation_date|add:"</i>" 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:"<br/><i>"|add:edition_date|add:"</i>" as modifier %} - {% trans "Last modified by" as lastmodifiedby_label %} - {% field_flex lastmodifiedby_label modifier|safe '' '' first %} - {% endwith %}{% endwith %} - {% endif %} - </div> + {% endif %} </div> |