Updated menus order
authorThierry Florac <tflorac@ulthar.net>
Wed, 07 Feb 2018 14:17:37 +0100
changeset 367 392a5ec1b482
parent 366 9daa8a31a58d
child 368 7cc109b71105
Updated menus order
src/pyams_content/component/association/zmi/__init__.py
src/pyams_content/component/paragraph/zmi/__init__.py
src/pyams_content/component/paragraph/zmi/container.py
src/pyams_content/component/theme/zmi/manager.py
src/pyams_content/shared/site/zmi/container.py
--- a/src/pyams_content/component/association/zmi/__init__.py	Wed Feb 07 11:51:15 2018 +0100
+++ b/src/pyams_content/component/association/zmi/__init__.py	Wed Feb 07 14:17:37 2018 +0100
@@ -97,7 +97,7 @@
 #
 
 @viewlet_config(name='associations.menu', context=IAssociationTarget, layer=IPyAMSLayer,
-                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=20)
+                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=60)
 class AssociationsMenu(MenuItem):
     """Associations menu"""
 
--- a/src/pyams_content/component/paragraph/zmi/__init__.py	Wed Feb 07 11:51:15 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/__init__.py	Wed Feb 07 14:17:37 2018 +0100
@@ -54,7 +54,7 @@
 #
 
 @viewlet_config(name='default-paragraphs.menu', context=IParagraphFactorySettings, layer=IAdminLayer,
-                manager=IPropertiesMenu, permission=MANAGE_TOOL_PERMISSION, weight=5)
+                manager=IPropertiesMenu, permission=MANAGE_TOOL_PERMISSION, weight=10)
 class DefaultParagraphsSettingsMenu(MenuItem):
     """Default paragraphs settings menu"""
 
--- a/src/pyams_content/component/paragraph/zmi/container.py	Wed Feb 07 11:51:15 2018 +0100
+++ b/src/pyams_content/component/paragraph/zmi/container.py	Wed Feb 07 14:17:37 2018 +0100
@@ -63,7 +63,7 @@
 
 
 @viewlet_config(name='paragraphs.menu', context=IParagraphContainerTarget, layer=IAdminLayer,
-                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=100)
+                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=50)
 class ParagraphsContainerMenu(MenuItem):
     """Paragraphs container menu"""
 
--- a/src/pyams_content/component/theme/zmi/manager.py	Wed Feb 07 11:51:15 2018 +0100
+++ b/src/pyams_content/component/theme/zmi/manager.py	Wed Feb 07 14:17:37 2018 +0100
@@ -38,11 +38,11 @@
 
 
 @viewlet_config(name='themes-manager.menu', context=IThemesManagerTarget, layer=IAdminLayer,
-                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=200)
+                manager=IPropertiesMenu, permission=VIEW_SYSTEM_PERMISSION, weight=40)
 class ThemesManagerMenu(MenuItem):
     """Themes menu"""
 
-    label = _("Themes...")
+    label = _("Themes settings...")
     icon_class = 'fa-tags'
     url = 'themes.html'
     modal_target = True
--- a/src/pyams_content/shared/site/zmi/container.py	Wed Feb 07 11:51:15 2018 +0100
+++ b/src/pyams_content/shared/site/zmi/container.py	Wed Feb 07 14:17:37 2018 +0100
@@ -95,7 +95,7 @@
 #
 
 @viewlet_config(name='workflow-publication.menu', context=ISiteContainer, layer=IPyAMSLayer, view=ISiteTreeTable,
-                manager=ITableItemColumnActionsMenu, permission=MANAGE_SITE_PERMISSION, weight=2)
+                manager=ITableItemColumnActionsMenu, permission=MANAGE_SITE_PERMISSION, weight=210)
 class SiteContainerTableItemWorkflowPublicationMenu(ToolbarMenuItem):
     """Site container tree item workflow publication menu"""
 
@@ -107,7 +107,7 @@
 
 
 @viewlet_config(name='workflow-publication.menu', context=ISiteContainer, layer=IAdminLayer, manager=IPropertiesMenu,
-                permission=MANAGE_SITE_PERMISSION, weight=2)
+                permission=MANAGE_SITE_PERMISSION, weight=210)
 class SiteContainerWorkflowPublicationMenu(MenuItem):
     """Site container workflow publication menu"""