Added static configuration option to handle main menu as accordion or not
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 13:46:19 +0200
changeset 189 7be4801ae463
parent 188 a23189d84157
child 190 4945c9b1202e
Added static configuration option to handle main menu as accordion or not
src/pyams_skin/configuration.py
src/pyams_skin/interfaces/configuration.py
--- a/src/pyams_skin/configuration.py	Fri Jun 09 14:46:53 2017 +0200
+++ b/src/pyams_skin/configuration.py	Wed Jul 12 13:46:19 2017 +0200
@@ -73,6 +73,7 @@
     include_minify_button = True
     include_flags = False
     include_menus = True
+    accordion_menus = True
     include_ribbon = True
     include_reload_button = True
     body_css_class = 'fixed-header fixed-ribbon fixed-navigation'
--- a/src/pyams_skin/interfaces/configuration.py	Fri Jun 09 14:46:53 2017 +0200
+++ b/src/pyams_skin/interfaces/configuration.py	Wed Jul 12 13:46:19 2017 +0200
@@ -111,6 +111,10 @@
                          default=True,
                          required=True)
 
+    accordion_menus = Bool(title="Display menus as accordion?",
+                           default=True,
+                           required=True)
+
     include_ribbon = Bool(title="Include ribbon?",
                           default=True,
                           required=True)