diff options
| 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 |
| commit | dfad3d4b9d7779b5fcd125260021d9f008a68a4f (patch) | |
| tree | f828418edadbf957db52121c13575ed7cc3e068c /archaeological_context_records/templates/ishtar | |
| parent | fc3f77b2db29391ce1340c535a02b7a32583caa7 (diff) | |
| download | Ishtar-dfad3d4b9d7779b5fcd125260021d9f008a68a4f.tar.bz2 Ishtar-dfad3d4b9d7779b5fcd125260021d9f008a68a4f.zip | |
Context records: show find inside related context records
Diffstat (limited to 'archaeological_context_records/templates/ishtar')
| -rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 8 |
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 %} |
