summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates
diff options
context:
space:
mode:
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
commit00097d1491b76b50c8e7ee0f35d5e6bfa00bbeea (patch)
treec2470281db529a89dc9a7a071d94437502b5e80b /archaeological_operations/templates
parent4e75df4a22da7e682224fd14914a9b711b794da5 (diff)
downloadIshtar-00097d1491b76b50c8e7ee0f35d5e6bfa00bbeea.tar.bz2
Ishtar-00097d1491b76b50c8e7ee0f35d5e6bfa00bbeea.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.html8
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 %}