From f85f4083909cbbf3f8db182ba52ee383db818115 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 15 Mar 2017 17:52:06 +0100 Subject: Operation sheet: add list of containers (refs #3458) --- .../templates/ishtar/sheet_operation.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'archaeological_operations/templates') diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index e920dd226..48116433c 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -111,30 +111,35 @@ {% endif %} {% if item.context_record.count %} -

{% trans "Context records" %}

-{% dynamic_table_document '' 'context_records_for_ope' 'operation' item.pk 'TABLE_COLS_FOR_OPE' output %} +{% trans "Context records" as cr_lab %} +{% dynamic_table_document cr_lab 'context_records_for_ope' 'operation' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} -{% trans "Context record relations" as cr_rels %} {% if item.context_record_relations_q.count %} +{% trans "Context record relations" as cr_rels %} {% dynamic_table_document cr_rels 'context_records_relations_detail' 'left_record__operation' item.pk '' output %} {% endif %} -{% trans "Documents from associated context records" as cr_docs %} {% if item.context_record_docs_q.count %} +{% trans "Documents from associated context records" as cr_docs %} {% dynamic_table_document cr_docs 'context_records_docs' 'context_record__operation' item.pk '' output %} {% endif %} -{% trans "Finds" as finds %} {% if item.finds %} +{% trans "Finds" as finds %} {% dynamic_table_document finds 'finds_for_ope' 'base_finds__context_record__operation' item.pk 'TABLE_COLS_FOR_OPE' output %} {% endif %} -{% trans "Documents from associated finds" as finds_docs %} {% if item.find_docs_q.count %} +{% trans "Documents from associated finds" as finds_docs %} {% dynamic_table_document finds_docs 'finds_docs' 'find__base_finds__context_record__operation' item.pk '' output %} {% endif %} +{% 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 %} +

{% trans "Statistics" %}

{% trans "Administrative acts" %}

-- cgit v1.2.3