summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-03 17:14:13 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-03 17:14:41 +0100
commit1ec422545704e35f9a1fe2eaa5f974cc82d5179f (patch)
treeaeef3e6775cadaff9b948aa142dfdac39d250859 /archaeological_operations/templates
parentc79ec86652742f9e98df25c3ef187d0022aa5a5b (diff)
downloadIshtar-1ec422545704e35f9a1fe2eaa5f974cc82d5179f.tar.bz2
Ishtar-1ec422545704e35f9a1fe2eaa5f974cc82d5179f.zip
Sheet operation QA: add context record
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r--archaeological_operations/templates/ishtar/sheet_operation.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html
index fb938b93f..1d699cbed 100644
--- a/archaeological_operations/templates/ishtar/sheet_operation.html
+++ b/archaeological_operations/templates/ishtar/sheet_operation.html
@@ -196,10 +196,12 @@
{% dynamic_table_document archaeologicalsites_label 'sites' 'operations' item.pk '' output %}
{% endif %}
+{% if item.grouped_parcels %}
{% trans "Associated parcels" as parcels_label %}
{% include "ishtar/blocks/window_tables/parcels.html" %}
+{% endif %}
-{% if item.administrative_act %}
+{% if item.administrative_act.count %}
<h3>{% trans "Administrative acts" %}</h3>
{% table_administrativact "" item.administrative_act.all %}
{% endif %}
@@ -209,7 +211,7 @@
{% dynamic_table_document operation_docs 'documents' 'operations' item.pk '' output %}
{% endif %}
-{% if view_own_contextrecord or view_contextrecord %}
+{% if permission_view_own_contextrecord or permission_view_contextrecord %}
{% if item.context_record.count %}
{% trans "Context records" as cr_lab %}
{% dynamic_table_document cr_lab 'context_records_for_ope' 'operation_id' item.pk 'TABLE_COLS_FOR_OPE' output %}
@@ -236,7 +238,7 @@
{% dynamic_table_document finds_docs 'documents' 'finds__base_finds__context_record__operation' item.pk '' output %}
{% endif %}
-{% if view_own_container or view_container %}
+{% if permission_view_own_container or permission_view_container %}
{% if item.containers_q.count %}
{% trans "Associated containers" as containers_lbl %}
{% dynamic_table_document containers_lbl 'containers' 'finds__base_finds__context_record__operation' item.pk '' output %}