Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Set block body_class for 'navigation' and 'site settings' to deactivate 'home page' menu item
jakubwi1e1148bf33e0
diff --git a/templates/dashboard/menu/detail.html b/templates/dashboard/menu/detail.htmlindex aa47d8c362..0e91f2bedd 100644--- a/templates/dashboard/menu/detail.html+++ b/templates/dashboard/menu/detail.html@@ -7,6 +7,8 @@{% block title %}{% trans "Navigation" context "Menu list page title" %} -{{ block.super }}{% endblock %}+{% block body_class %}body-menus{% endblock %}+{% block menu_menus_class %}active{% endblock %}{% block header_menu %}diff --git a/templates/dashboard/menu/form.html b/templates/dashboard/menu/form.htmlindex 42391d340d..39766ac3c9 100644--- a/templates/dashboard/menu/form.html+++ b/templates/dashboard/menu/form.html@@ -12,6 +12,8 @@- {% trans "Navigation" context "Dashboard menus list" %} - {{ block.super }}{% endblock %}+{% block body_class %}body-menus{% endblock %}+{% block menu_menus_class %}active{% endblock %}{% block page_title %}diff --git a/templates/dashboard/menu/item/detail.html b/templates/dashboard/menu/item/detail.htmlindex 9d56191c38..a00ed6ab53 100644--- a/templates/dashboard/menu/item/detail.html+++ b/templates/dashboard/menu/item/detail.html@@ -7,6 +7,8 @@{% block title %}{% trans "Menu items" context "Menu item list page title" %} -{{ block.super }}{% endblock %}+{% block body_class %}body-menus{% endblock %}+{% block menu_menus_class %}active{% endblock %}{% block header_menu %}diff --git a/templates/dashboard/menu/item/form.html b/templates/dashboard/menu/item/form.htmlindex 045b763f71..7b5d2eb4ae 100644--- a/templates/dashboard/menu/item/form.html+++ b/templates/dashboard/menu/item/form.html@@ -12,6 +12,8 @@- {% trans "Menu items" context "Dashboard menu items list" %} - {{ block.super }}{% endblock %}+{% block body_class %}body-menus{% endblock %}+{% block menu_menus_class %}active{% endblock %}{% block page_title %}diff --git a/templates/dashboard/menu/list.html b/templates/dashboard/menu/list.htmlindex c311d77934..fa652f9ee4 100644--- a/templates/dashboard/menu/list.html+++ b/templates/dashboard/menu/list.html@@ -9,6 +9,8 @@{% trans "Navigation" context "Menu list page title" %} - {{ block.super }}{% endblock %}+{% block body_class %}body-menus{% endblock %}+{% block menu_menus_class %}active{% endblock %}{% block header_menu %}diff --git a/templates/dashboard/sites/detail.html b/templates/dashboard/sites/detail.htmlindex b5eefa775f..51a9ad8681 100644--- a/templates/dashboard/sites/detail.html+++ b/templates/dashboard/sites/detail.html@@ -7,6 +7,8 @@{{ site_settings }} - {{ block.super }}{% endblock %}+{% block body_class %}body-settings{% endblock %}+{% block menu_settings_class %}active{% endblock %}{% block breadcrumbs %}