You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

116 lines
5.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<templates id="template" xml:space="preserve">
<!-- create navbar template-->
<t t-inherit="web.NavBar" t-inherit-mode="extension" owl="1">
<xpath expr="//nav[hasclass('o_main_navbar')]" position="replace">
<nav class="o_main_navbar d-flex justify-content-between"
t-on-dropdown-item-selected="onNavBarDropdownItemSelection"
data-command-category="navbar">
<div class="d-flex">
<div class="top_heading">
<!-- Apps Menu -->
<t t-call="web.NavBar.AppsMenu">
<t t-set="apps" t-value="menuService.getApps()"/>
</t>
<!-- App Brand -->
<DropdownItem t-if="currentApp"
t-esc="currentApp.name"
class="'o_menu_brand d-none d-md-block'"
onSelected="() => this.onNavBarDropdownItemSelection(currentApp)"/>
</div>
<!-- Current App Sections -->
<div class="d-none d-md-block">
<t t-if="currentAppSections.length"
t-call="web.NavBar.SectionsMenu">
<t t-set="sections" t-value="currentAppSections"/>
</t>
</div>
<div class="d-xs-block d-sm-block d-md-none">
<t t-call="web.NavBar.SectionsMenu.MoreDropdown">
<t t-set="sections" t-value="currentAppSections"/>
</t>
</div>
</div>
<!-- Systray -->
<div class="o_menu_systray d-flex flex-shrink-0 ms-auto"
role="menu">
<t t-foreach="systrayItems" t-as="item" t-key="item.key">
<div t-att-data-index="item.index"/>
<ErrorHandler
onError="error => handleItemError(error, item)">
<t t-component="item.Component"
t-props="item.props"/>
</ErrorHandler>
</t>
</div>
</nav>
<div class="sidebar_panel" id="sidebar_panel" t-ref="sidebarPanel">
<div class="sidebar" t-ref="sidebar">
<div class="sidebar_close">
<a id="closeSidebar" style="cursor: pointer;">
<img src="/vista_backend_theme/static/src/img/icons/close.png"/>
</a>
</div>
<h6 class="sidebar_head">MENU</h6>
<ul class="sidebar_menu">
<t t-foreach="menuService.getApps()" t-as="app"
t-key="app.id">
<li data-toggle="tooltip" data-placement="right"
t-att-title="app.name">
<a role="menuitem"
t-attf-href="#menu_id={{app.id}}"
t-on-click="() => this.onNavBarDropdownItemSelection(app)"
class="nav-link">
<img class="sidebar_img"
t-attf-src="{{app.webIconData}}"/>
<span class="sidebar_app_name">
<t t-esc="app.name"/>
</span>
</a>
</li>
</t>
</ul>
</div>
</div>
</xpath>
</t>
<!-- create Apps menu template -->
<t t-inherit="web.NavBar.AppsMenu" t-inherit-mode="extension" owl="1">
<xpath expr="//Dropdown[1]" position="replace">
<li class="dropdown">
<a id="openSidebar" style="display: block; cursor: pointer;"
t-ref="openSidebar">
<div class="c_sidebar_active">
<div class="c_dots_menu"/>
</div>
</a>
<a id="closeSidebar" t-ref="closeSidebars"
style="display: none; cursor: pointer;">
<div class="c_sidebar_passive">
<div class="c_dots_menu_toggled "/>
</div>
</a>
</li>
</xpath>
</t>
<!-- create Messaging menu template-->
<t t-inherit="mail.MessagingMenu" t-inherit-mode="extension" owl="1">
<xpath expr="//i[hasclass('fa-comments')]" position="replace">
<img src="/vista_backend_theme/static/src/img/icons/speech-bubble.png"
width="22" height="22" aria-label="Messages"/>
</xpath>
</t>
<!-- create Activity menu template-->
<t t-inherit="mail.ActivityMenu" t-inherit-mode="extension" owl="1">
<xpath expr="//i[hasclass('fa-clock-o')]" position="replace">
<img src="/vista_backend_theme/static/src/img/icons/bell.png"
width="22" height="22" aria-label="Activities"/>
</xpath>
</t>
<!-- create User menu template-->
<t t-inherit="web.UserMenu" t-inherit-mode="extension" owl="1">
<xpath expr="//small[hasclass('oe_topbar_name')]" position="replace">
<div class="oe_topbar_name"/>
</xpath>
</t>
</templates>