summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-07 00:04:06 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-07 00:04:06 +0100
commit70bf74767fccbe6cbdf4592759b31ddd5bb7d9c3 (patch)
tree21b664de58d64b8ca91a7885174730a0b2eeb3ee /archaeological_context_records
parentb048f9b4ebab50e6f539ef92ecbeb6cc05ecb3d7 (diff)
downloadIshtar-70bf74767fccbe6cbdf4592759b31ddd5bb7d9c3.tar.bz2
Ishtar-70bf74767fccbe6cbdf4592759b31ddd5bb7d9c3.zip
Sheets: better display of creation and modification date/user (refs #3486)
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html16
1 files changed, 14 insertions, 2 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index e44597961..1c024dcfc 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -15,8 +15,20 @@
<ul class='form-flex'>
<li><label>{% if item.operation.code_patriarche %}{%trans "Complete ID:"%}{% else %}{%trans "Temporary ID:"%}{% endif %}</label><span class='value'>{{item.full_label}}</span></li>
-{% field_li "Creation date" item.creation_date %}
-{% field_li_detail "Created by" item.history_creator.ishtaruser.person %}
+<li><label>{%trans "Creation:"%}</label>
+ <span class='value'>
+ {{item.history_creator.ishtaruser.person}}<br/>
+ <small><em>{{item.history_creation_date|date:"DATETIME_FORMAT"}}</em></small>
+ </span>
+</li>
+ {% if item.history_creation_date != item.last_edition_date %}
+<li><label>{%trans "Modification:"%}</label>
+ <span class='value'>
+ {{item.history_modifier.ishtaruser.person}}<br/>
+ <small><em>{% firstof item.history_date|date:"DATETIME_FORMAT" item.history.all.0.history_date|date:"DATETIME_FORMAT" %}</em></small>
+ </span>
+</li>
+ {% endif %}
{% field_li "Type" item.unit %}
{% field_li_multiple "Chronology" item.datings %}
{% field_li "Town" item.parcel.town %}