diff options
Diffstat (limited to 'archaeological_finds')
| -rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 57ed7e662..33c884db3 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -32,7 +32,18 @@ {% field_li "Free-ID" item.label %} {% field_li "Previous ID" item.previous_id %} {% field_li "Description" item.description %} -{% field_li "Created by" item.history_creator.ishtaruser.full_label %} +{% 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_li "Created by" creator|safe %} +{% 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 %} +{% field_li "Last modified by" modifier|safe %} +{% endwith %} +{% endwith %} +{% endif %} {% field_li "Administrative index" item.administrative_index %} {% field_li_multiple "Material types" item.material_types %} {% field_li "Dating" item.dating %} @@ -123,6 +134,18 @@ <ul class='form-flex'> {% field_li "Complete ID" base_find.complete_id %} {% field_li "Short ID" base_find.short_id %} +{% 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_li "Created by" creator|safe %} +{% 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 %} +{% field_li "Last modified by" modifier|safe %} +{% endwith %} +{% endwith %} +{% endif %} {% if base_find.IS_ISOLATED_DICT %} {% field_li "Batch/object" base_find.batch|from_dict:base_find.IS_ISOLATED_DICT %} {% endif %} |
