From 5230a8e0a06a5d67d6c13f2359bc51be07b4fb5a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 9 Sep 2016 00:41:57 +0200 Subject: Shortcut menu: menu is now dynamic - selected items filter dependant items (refs #2996) - can now pin items from sheet (refs #3078) --- ishtar_common/templates/base.html | 35 +++++++--------------- .../templates/ishtar/blocks/shortcut_menu.html | 24 +++++++++++++++ .../templates/ishtar/blocks/window_nav.html | 7 +++++ 3 files changed, 41 insertions(+), 25 deletions(-) create mode 100644 ishtar_common/templates/ishtar/blocks/shortcut_menu.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html index 47ea61594..703644a35 100644 --- a/ishtar_common/templates/base.html +++ b/ishtar_common/templates/base.html @@ -14,12 +14,14 @@ + + @@ -28,6 +30,9 @@ {% include "blocks/extra_head.html" %} {% block extra_head %} {% endblock %} + +
+
+
diff --git a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html new file mode 100644 index 000000000..29c975e79 --- /dev/null +++ b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html @@ -0,0 +1,24 @@ +{% load i18n %} +{% load url from future%} +{% if current_menu %} +
+
+ + +{% for lbl, model_name, main_cls, items in current_menu %} + + + {% with 'show-'|add:model_name as model_url%} + + {% endwith %} + +{% endfor %} +
+ +
+
+
+{% endif %} diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index 13069b1eb..c0d1ba9fe 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -42,6 +42,13 @@ {% endif %} + {% if pin_action %} + + + + + + {% endif %} ODT PDF
-- cgit v1.2.3