layouts/basic/modules/Vtiger/menu/SubMenu.tpl
{strip}
{*<!-- {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} -->*}
{if isset($MENU['childs']) && $MENU['childs']|@count neq 0}
{assign var=MENUS value=$MENU['childs']}
{if (isset($MENU['active']) && $MENU['active']) || $PARENT_MODULE == $MENU['id']}
{assign var=EXPAND value='true'}
{else}
{assign var=EXPAND value='false'}
{/if}
<div class="tpl-menu-SubMenu js-submenu collapse{if $EXPAND=='true'} show{/if}" id="submenu-{$MENU['id']}" data-js="bootstrap:collapse" data-parent="#submenu-{if isset($MENU['parent'])}{$MENU['parent']}{else}0{/if}">
<ul class="nav flex-column">
{foreach key=KEY item=MENU from=$MENUS}
{assign var=MENU_MODULE value='Menu'}
{if isset($MENU['moduleName'])}
{assign var=MENU_MODULE value=$MENU['moduleName']}
{/if}
{assign var=HASCHILDS value=isset($MENU['childs']) && $MENU['childs']|@count neq 0}
{include file=\App\Layout::getTemplatePath('menu/'|cat:$MENU.type|cat:'.tpl', $MODULE)}
{/foreach}
</ul>
</div>
{/if}
{/strip}