From f375ba96ae919e5465b4f7fbff0e141c15e407e4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 7 Dec 2021 00:21:33 +0100 Subject: [PATCH] add sidetree toggler function --- .../part/templates/part/category_sidebar.html | 3 +++ InvenTree/part/templates/part/part_sidebar.html | 4 +++- InvenTree/templates/base.html | 2 +- InvenTree/templates/js/dynamic/nav.js | 17 ++++++++++++++--- 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/InvenTree/part/templates/part/category_sidebar.html b/InvenTree/part/templates/part/category_sidebar.html index 3d945d0433..fe3f33b780 100644 --- a/InvenTree/part/templates/part/category_sidebar.html +++ b/InvenTree/part/templates/part/category_sidebar.html @@ -4,6 +4,9 @@ {% settings_value 'PART_SHOW_IMPORT' as show_import %} +{% include "sidebar_toggle.html" with target="sidetree" %} + + {% trans "Subcategories" as text %} {% include "sidebar_item.html" with label="subcategories" text=text icon="fa-sitemap" %} {% trans "Parts" as text %} diff --git a/InvenTree/part/templates/part/part_sidebar.html b/InvenTree/part/templates/part/part_sidebar.html index 6299c6fedc..2a24623b0b 100644 --- a/InvenTree/part/templates/part/part_sidebar.html +++ b/InvenTree/part/templates/part/part_sidebar.html @@ -5,7 +5,9 @@ {% settings_value "PART_INTERNAL_PRICE" as show_internal_price %} {% settings_value 'PART_SHOW_RELATED' as show_related %} -{% include "sidebar_toggle.html" with target="#sidetree" %} +{% include "sidebar_toggle.html" with target="sidetree" %} + + {% trans "Parameters" as text %} {% include "sidebar_item.html" with label="part-parameters" text=text icon="fa-th-list" %} {% if part.is_template %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 70abcca433..4ec04b4ff8 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -74,7 +74,7 @@
-
+