summaryrefslogtreecommitdiff
path: root/archaeological_context_records/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2020-12-01 13:33:21 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-02-28 12:15:21 +0100
commit5015e03c0ceabe8ca8a7884e7178bfd246d77788 (patch)
treef828418edadbf957db52121c13575ed7cc3e068c /archaeological_context_records/templates
parent3c25d1f4ab24a1bea9b4be0757f9b8f243564954 (diff)
downloadIshtar-5015e03c0ceabe8ca8a7884e7178bfd246d77788.tar.bz2
Ishtar-5015e03c0ceabe8ca8a7884e7178bfd246d77788.zip
Context records: show find inside related context records
Diffstat (limited to 'archaeological_context_records/templates')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index 95f4205f8..e15a07f70 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -238,8 +238,12 @@
role="tabpanel" aria-labelledby="{{window_id}}-finds-tab">
{% trans "Finds" as finds %}
- {% if item.base_finds.count %}
- {% dynamic_table_document finds 'finds_for_ope' 'base_finds__context_record' item.pk 'TABLE_COLS_FOR_OPE' output %}
+ {% if item.all_base_finds.count %}
+ {% dynamic_table_document finds 'finds_for_cr' 'all_base_finds__context_record' item.pk 'TABLE_COLS_FOR_CR' output %}
+ {% else %}
+ <div class="alert alert-info">
+ {% trans "No associated finds." %}
+ </div>
{% endif %}
{% trans "Documents from associated finds" as finds_docs %}