From ed8291ebd2c5613a9bddffd9380c9f61a08303dd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 11 Oct 2016 18:04:01 +0200 Subject: Shortcut menu: can now choose between simple and advanced menu --- .../ishtar/blocks/advanced_shortcut_menu.html | 38 ++++++++++++++++++++++ .../templates/ishtar/blocks/shortcut_menu.html | 27 ++++++++------- 2 files changed, 51 insertions(+), 14 deletions(-) create mode 100644 ishtar_common/templates/ishtar/blocks/advanced_shortcut_menu.html (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/ishtar/blocks/advanced_shortcut_menu.html b/ishtar_common/templates/ishtar/blocks/advanced_shortcut_menu.html new file mode 100644 index 000000000..91f99f294 --- /dev/null +++ b/ishtar_common/templates/ishtar/blocks/advanced_shortcut_menu.html @@ -0,0 +1,38 @@ +{% load i18n %} +{% load url from future%} +{% if menu %} +
+
+
+ + +
+
+

+

+ + +

+

+ +

+
+ +{% for lbl, model_name, current, widget in menu %} + + + {% with 'show-'|add:model_name as model_url%} + + + {% endwith %} + +{% endfor %} +
+ {{widget|safe}} + + +
+
+
+ +{% endif %} diff --git a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html index fc1131c90..f07e0ed99 100644 --- a/ishtar_common/templates/ishtar/blocks/shortcut_menu.html +++ b/ishtar_common/templates/ishtar/blocks/shortcut_menu.html @@ -1,27 +1,25 @@ {% load i18n %} {% load url from future%} -{% if menu %} +{% if current_menu %}
-
-

-

- - -

-

- -

+
+ +
+ -{% for lbl, model_name, current, widget in menu %} +{% for lbl, model_name, main_cls, items in current_menu %} {% with 'show-'|add:model_name as model_url%} - - + {% endwith %} @@ -30,4 +28,5 @@
- {{widget|safe}} + +
+ {% endif %} -- cgit v1.2.3