diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-02-26 20:14:22 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-04-24 19:38:57 +0200 |
| commit | 5bd178db63db3ff05165fc131960f198b2fbbca3 (patch) | |
| tree | c644209eb81804406bfc5f014713dc1f62bc5ad4 /archaeological_finds | |
| parent | bb1bb0cf461766997a1496547edbbdf04ade4bd6 (diff) | |
| download | Ishtar-5bd178db63db3ff05165fc131960f198b2fbbca3.tar.bz2 Ishtar-5bd178db63db3ff05165fc131960f198b2fbbca3.zip | |
QR code: QR code export, display on ODT and PDF
Diffstat (limited to 'archaeological_finds')
| -rw-r--r-- | archaeological_finds/models_finds.py | 6 | ||||
| -rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 084e2b8d7..e93580418 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -702,9 +702,11 @@ def query_loan(is_true=True): class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, QRCodeItem, OwnPerms, MainItem): - EXTERNAL_ID_KEY = 'find_external_id' - SHOW_URL = 'show-find' SLUG = 'find' + APP = "archaeological-finds" + MODEL = "find" + SHOW_URL = 'show-find' + EXTERNAL_ID_KEY = 'find_external_id' TABLE_COLS = ['external_id', 'label', 'base_finds__context_record__town__name', 'base_finds__context_record__operation__common_name', diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 1b383e4e5..7644acb60 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -27,6 +27,7 @@ {% with can_view_documents=permission_view_own_document|or_:permission_view_document %} {% with display_documents=can_view_documents|and_:item.documents.count %} +{% if output != "ODT" and output != "PDF"%} <ul class="nav nav-tabs" id="{{window_id}}-tabs" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="{{window_id}}-basefind-tab" @@ -79,6 +80,7 @@ </li> {% endif %} </ul> +{% endif %} <div class="tab-content" id="{{window_id}}-tab-content"> |
