顶部菜单支持多级菜单
This commit is contained in:
@@ -1,16 +1,37 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates>
|
||||
<t t-name="theme_systray">
|
||||
<li class="new_icon">
|
||||
<label class="theme_vista" style="margin-bottom:0px;" title="Change backend theme">
|
||||
<t t-if="widget.is_admin">
|
||||
<div class="icon_div">
|
||||
<div class="toggle-icon" role="button">
|
||||
<i id='theme_vista' class="fa fa-paint-brush" role="img" aria-label="Theme" width="22" height="22"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</label>
|
||||
</li>
|
||||
</t>
|
||||
<t t-name="theme_systray">
|
||||
<li class="new_icon">
|
||||
<label class="theme_vista" style="margin-bottom:0px;" title="Change backend theme">
|
||||
<t t-if="widget.is_admin">
|
||||
<div class="icon_div">
|
||||
<div class="toggle-icon" role="button">
|
||||
<i id='theme_vista' class="fa fa-paint-brush" role="img" aria-label="Theme" width="22"
|
||||
height="22"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</label>
|
||||
</li>
|
||||
</t>
|
||||
|
||||
<t t-name="customDropdownChild" owl="1">
|
||||
<t t-foreach="children" t-as="child" t-key="child.id">
|
||||
<t t-if="!child.childrenTree.length">
|
||||
<a class="t2" t-attf-href="{{getMenuItemHref(child)}}">
|
||||
<t t-esc="child.name"></t>
|
||||
</a>
|
||||
</t>
|
||||
|
||||
<div t-if="child.childrenTree.length">
|
||||
<p class="subtitle">
|
||||
<t t-esc="child.name"></t>
|
||||
</p>
|
||||
<t t-call="customDropdownChild">
|
||||
<t t-set="children" t-value="child.childrenTree"/>
|
||||
</t>
|
||||
</div>
|
||||
|
||||
</t>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user