上传修改后的主题
This commit is contained in:
120
spiffy_theme_backend/static/src/xml/base.xml
Normal file
120
spiffy_theme_backend/static/src/xml/base.xml
Normal file
@@ -0,0 +1,120 @@
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-name="show_icon_pack" t-inherit="web.ListView.Buttons" t-inherit-mode="primary" owl="1" >
|
||||
<xpath expr="//div[hasclass('o_list_buttons')]" position="inside">
|
||||
<a class="btn btn-primary open_wizard_action" href="https://www.bizople.com/remix-icons" target="_blank">
|
||||
Show Icon Pack
|
||||
</a>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
<t t-name="spiffy_theme_backend.UserMenuInherit" t-inherit="web.UserMenu" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//Dropdown" position="replace">
|
||||
<div class="o_user_menu d-none d-lg-block">
|
||||
<Dropdown class="'user-image-style d-none d-md-block pe-0'">
|
||||
<t t-set-slot="toggler">
|
||||
<img class="rounded-circle o_user_avatar oe_topbar_avatar" t-att-src="source" alt="User"/>
|
||||
<div class="user-info">
|
||||
<span class="oe_topbar_name text-truncate"><t t-esc="user.name"/><t t-if="env.debug" t-esc="' (' + user.db.name + ')'"/></span>
|
||||
<span class="greeting">
|
||||
<t t-if="greeting">
|
||||
<t t-esc="greeting"/>
|
||||
</t>
|
||||
</span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-foreach="getElements()" t-as="element" t-key="element_index">
|
||||
<t t-if="!element.hide">
|
||||
<DropdownItem
|
||||
t-if="element.type == 'item' || element.type == 'switch'"
|
||||
href="element.href"
|
||||
dataset="{ menu: element.id }"
|
||||
onSelected="element.callback"
|
||||
>
|
||||
<CheckBox
|
||||
t-if="element.type == 'switch'"
|
||||
value="element.isChecked"
|
||||
className="'form-switch d-flex flex-row-reverse justify-content-between p-0'"
|
||||
onChange="element.callback"
|
||||
>
|
||||
<t t-out="element.description"/>
|
||||
</CheckBox>
|
||||
<t t-else="" t-out="element.description"/>
|
||||
</DropdownItem>
|
||||
<div t-if="element.type == 'separator'" role="separator" class="dropdown-divider"/>
|
||||
</t>
|
||||
</t>
|
||||
</Dropdown>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
<t t-name="spiffy_theme_backend.BurgerUserMenuInherit" t-inherit="web.BurgerUserMenu" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//a" position="replace">
|
||||
<a t-if="element.type == 'item'" class="dropdown-item py-3 fs-4" t-att-href="element.href or ''" t-out="element.description" t-on-click.stop.prevent="() => this._onItemClicked(element.callback)"/>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
<t t-inherit="web.SwitchCompanyMenu" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//Dropdown" position="replace">
|
||||
<div class="o_switch_company_menu">
|
||||
<div class="o_user_lang position-relative d-none">
|
||||
<a role="button" class="dropdown-toggle lang_selector" data-bs-toggle="dropdown" data-display="static" aria-expanded="false" title="Languages">
|
||||
<i class="ri ri-translate-2" role="img" aria-label="Activities" />
|
||||
</a>
|
||||
<div class="dropdown-menu" role="menu">
|
||||
<div class="align-items-center active_lang">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="company_selections d-inline-block position-relative">
|
||||
<a role="button" class="dropdown-toggle o-no-caret" data-bs-toggle="dropdown" data-display="static" aria-expanded="false" href="#" title="Company">
|
||||
<span t-attf-class="{{env.isSmall ? 'ri ri-building-2-line' : 'oe_topbar_name'}}">
|
||||
<t t-if="!env.isSmall"><i class="ri ri-building-2-line" /></t>
|
||||
</span>
|
||||
</a>
|
||||
<div class="dropdown-menu" role="menu">
|
||||
<t t-foreach="Object.values(companyService.availableCompanies).sort((c1, c2) => c1.sequence - c2.sequence)" t-as="company" t-key="company.id">
|
||||
<t t-call="web.SwitchCompanyItem">
|
||||
<t t-set="company" t-value="company" />
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
<div class="debug_activator">
|
||||
<a t-attf-class="activate_debug {{isDebug ? 'toggle' : ''}}" title="Debug">
|
||||
<span class="ri ri-code-box-line" style="font-size: 18px;"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="theme_selector list-unstyled ms-3">
|
||||
<a class="theme-edit" title="Theme Setting">
|
||||
<span aria-label="Themes Configuration" class="ri ri-paint-brush-line" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="vertical_sidemenu_behaviour d-none ms-3">
|
||||
<a class="pin_sidebar" title="Pin Sidebar">
|
||||
<span class="ri ri-lock-unlock-line" style="font-size: 18px;"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="header_to_do_list list-unstyled ms-3">
|
||||
<a class="to_do_list" title="Notes">
|
||||
<span aria-label="Notes" class="ri ri-sticky-note-line" />
|
||||
</a>
|
||||
</div>
|
||||
<div class="dark_mode list-unstyled ms-3">
|
||||
<div class="dark-light-mode-button-design">
|
||||
<input id="dark_mod" type="checkbox" class="checkbox custom-control-input d-none" role="switch" />
|
||||
<label for="dark_mod" class="label mb-0" title="Light/Dark Mode">
|
||||
<i class='bulb-on ri ri-lightbulb-flash-fill'></i>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
|
||||
<t t-inherit="web.OwlDialog" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('o_dialog')]" position="attributes">
|
||||
<attribute name="t-att-data-bs-backdrop">'' + props.backdrop</attribute>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user