From 5bd178db63db3ff05165fc131960f198b2fbbca3 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 26 Feb 2019 20:14:22 +0100 Subject: QR code: QR code export, display on ODT and PDF --- .../templates/ishtar/blocks/window_nav.html | 9 ++++--- ishtar_common/templates/ishtar/sheet.html | 31 ++++++++++++++-------- 2 files changed, 26 insertions(+), 14 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index a53e62b0d..92fa15352 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -71,15 +71,18 @@ aria-labelledby="dropdown-sheet-export-{{window_id}}"> - ODT + ODT - PDF + PDF {% for template_name, template_url in extra_templates %} - {{template_name}} + {{template_name}} {% endfor %} + {% if item.HAS_QR_CODE %} + {% trans "QR Code" %} + {% endif %} diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index e937f1474..6b9c97948 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -8,28 +8,37 @@ {% endblock %} -
+ + {% if output != "ODT" and output != "PDF" %} -- cgit v1.2.3