Added check for accordion navigation menu
authorThierry Florac <thierry.florac@onf.fr>
Thu, 13 Jul 2017 10:38:51 +0200
changeset 26 bc2ecebafbb6
parent 25 80fb2b318198
child 27 c344bd9c2d06
Added check for accordion navigation menu
src/pyams_zmi/interfaces/templates/admin-layout.pt
--- a/src/pyams_zmi/interfaces/templates/admin-layout.pt	Wed Jun 07 10:57:34 2017 +0200
+++ b/src/pyams_zmi/interfaces/templates/admin-layout.pt	Thu Jul 13 10:38:51 2017 +0200
@@ -144,7 +144,8 @@
 			<!-- AJAX progress gear -->
 			<div id="ajax-gear"><i class="fa fa-2x fa-spin fa-gear"></i></div>
 			<!-- Navigation menus -->
-			<nav tal:content="structure provider:pyams.menus"></nav>
+			<nav tal:attributes="data-ams-menu-accordion 'true' if static.accordion_menus else 'false'"
+				 tal:content="structure provider:pyams.menus"></nav>
 			<span class="minifyme" style=""> <i class="fa fa-arrow-circle-left hit"></i> </span>
 		</tal:if>