diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-11-27 13:06:05 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-11-27 13:06:53 +0100 |
commit | fe1bb8dbe6d02d2379f89d410b3533a6d84209b2 (patch) | |
tree | 2f220df0a9cbb856893f96e29dcfb3e09871c790 /archaeological_operations | |
parent | 0fc27869f44cdb5af8f34e097e970218cefdf49a (diff) | |
download | Ishtar-fe1bb8dbe6d02d2379f89d410b3533a6d84209b2.tar.bz2 Ishtar-fe1bb8dbe6d02d2379f89d410b3533a6d84209b2.zip |
Sheets: fix dict presentation for historical records
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 9784b29df..545b1c143 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -58,7 +58,13 @@ <p><label>{%trans "Remains:"%}</label> <span class='value'>{{ item.remains.all|join:", " }}</span></p> <p><label>{%trans "Periods:"%}</label> <span class='value'>{{ item.periods.all|join:", " }}</span></p> +{% if item.QUALITY_DICT %} {% field "Record quality" item.record_quality|from_dict:item.QUALITY_DICT %} +{% endif %} +{% if item.history_object and item.history_object.QUALITY_DICT %} +{% field "Record quality" item.record_quality|from_dict:item.history_object.QUALITY_DICT %} +{% endif %} + {% if item.associated_file %} <p><label>{%trans "Associated file:"%}</label> <span class='value'><a href='#' onclick='load_window("{% url show-file item.associated_file.pk ''%}")'>{{ item.associated_file }}</a></span></p><!-- Displayed as Year/index/Commune/Common_name This should be a link to the file sheet of the related file --> |