summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-02 18:21:22 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-12-02 18:22:49 +0100
commit07935c570053e6a4cefe07de3967c53c038f4fe3 (patch)
tree4c4068c6c37f9abd19f5220d9f793e37a21fd8b3 /archaeological_finds/templates
parentad8bc7234067d65751892005973def88d12bcc2c (diff)
downloadIshtar-07935c570053e6a4cefe07de3967c53c038f4fe3.tar.bz2
Ishtar-07935c570053e6a4cefe07de3967c53c038f4fe3.zip
Sheet find: link to baskets
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r--archaeological_finds/templates/ishtar/blocks/window_find_nav.html19
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html2
2 files changed, 20 insertions, 1 deletions
diff --git a/archaeological_finds/templates/ishtar/blocks/window_find_nav.html b/archaeological_finds/templates/ishtar/blocks/window_find_nav.html
new file mode 100644
index 000000000..5ecaa35f0
--- /dev/null
+++ b/archaeological_finds/templates/ishtar/blocks/window_find_nav.html
@@ -0,0 +1,19 @@
+{% extends "ishtar/blocks/window_nav.html" %}
+{% load i18n link_to_window %}
+{% block post_pin %}{% if baskets %}
+<div class="dropdown btn-secondary">
+ <button class="btn btn-sm btn-secondary dropdown-toggle" type="button"
+ id="dropdownMenuButton" data-toggle="dropdown"aria-haspopup="true" aria-expanded="false">
+ <i class="fa fa-shopping-basket"></i> {% trans "Baskets" %}
+ </button>
+ <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
+ {% for basket_id, lbl in baskets %}
+ <a class="dropdown-item" href="#"
+ onclick="load_window('{% url 'show-findbasket' basket_id %}')">
+ <i class="fa fa-info-circle display_details" aria-hidden="true"></i>
+ {{lbl}}
+ </a>
+ {% endfor %}
+ </div>
+</div>
+{% endif %}{% endblock %}
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 1aa5220bf..ceda2a563 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -4,7 +4,7 @@
{% block head_title %}<strong>{% trans "Find" %}</strong>{% if item.denomination %} - {{item.denomination|default:""}}{% endif %} - {{item.label|default:""}}{% endblock %}
{% block toolbar %}
-{% window_nav item window_id 'show-find' 'find_modify' 'show-historized-find' 'revert-find' previous next 1 %}
+{% window_find_nav item window_id 'show-find' 'find_modify' 'show-historized-find' 'revert-find' previous next 1 baskets %}
{% endblock %}
{% block content %}