diff options
| author | Étienne Loks <etienne.loks@proxience.com> | 2015-11-20 12:28:10 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@proxience.com> | 2015-11-20 12:28:10 +0100 |
| commit | 1e428c411afbd2d0c4e1480abcf5a89cdac761b1 (patch) | |
| tree | c2470281db529a89dc9a7a071d94437502b5e80b /archaeological_operations/templates | |
| parent | 0e2bf2e4f149c1250b2aef2c4f94c09db07b5584 (diff) | |
| download | Ishtar-1e428c411afbd2d0c4e1480abcf5a89cdac761b1.tar.bz2 Ishtar-1e428c411afbd2d0c4e1480abcf5a89cdac761b1.zip | |
Archaeological operations: add virtual and record quality fields (refs #2961)
Diffstat (limited to 'archaeological_operations/templates')
| -rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 56b5115d6..9784b29df 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -1,5 +1,5 @@ {% extends "ishtar/sheet.html" %} -{% load i18n window_tables window_ope_tables %} +{% load i18n window_tables window_ope_tables window_field from_dict %} {% block head_sheet %} {{block.super}} @@ -25,6 +25,10 @@ <div class='tool modify'><a href='{% url operation_modify item.pk %}'>{% trans "Modify" %}</a></div> +{% if item.virtual_operation %} +<p class='alert'>{% trans "This operation is virtual." %}</p> +{% endif %} + <h3>{% trans "General"%}</h3> {% if item.common_name %}<p><label>{%trans "Name:"%}</label> <span class='value'>{{ item.common_name }}</span></p>{% endif %} {% if item.year %}<p><label>{%trans "Year:"%}</label> <span class='value strong'>{{ item.year }}</span></p>{% endif %} @@ -54,6 +58,8 @@ <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> +{% field "Record quality" item.record_quality|from_dict:item.QUALITY_DICT %} + {% 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 --> {% if item.associated_file.is_preventive %} |
