summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-26 20:16:02 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-26 20:16:02 +0100
commitb90212ab240ebeba820be873d7fecb3a9a01d574 (patch)
treeb14d608de79fceec3efa53a97bf5751fffdfc3bb /archaeological_operations/templates
parenta6f67644de25c8ef285785c32ad2102de9d5d142 (diff)
downloadIshtar-b90212ab240ebeba820be873d7fecb3a9a01d574.tar.bz2
Ishtar-b90212ab240ebeba820be873d7fecb3a9a01d574.zip
Sheet operation: filter non relevant tables
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r--archaeological_operations/templates/ishtar/sheet_operation.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html
index 4db5541e9..6d8d475e4 100644
--- a/archaeological_operations/templates/ishtar/sheet_operation.html
+++ b/archaeological_operations/templates/ishtar/sheet_operation.html
@@ -208,6 +208,7 @@
{% dynamic_table_document operation_docs 'documents' 'operations' item.pk '' output %}
{% endif %}
+{% if view_own_contextrecord or 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 %}
@@ -222,6 +223,7 @@
{% trans "Documents from associated context records" as cr_docs %}
{% dynamic_table_document cr_docs 'documents' 'context_records__operation' item.pk '' output %}
{% endif %}
+{% endif %}
{% if item.finds %}
{% trans "Finds" as finds %}
@@ -233,10 +235,12 @@
{% dynamic_table_document finds_docs 'documents' 'finds__base_finds__context_record__operation' item.pk '' output %}
{% endif %}
+{% if view_own_container or 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 %}
{% endif %}
+{% endif %}
<h3>{% trans "Statistics" %}</h3>
<small class="centered"><em>{% trans "These numbers are updated hourly" %}</em></small>