diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:14:58 +0700 |
| commit | 1ca3b3df3421961caec3b747a364071c80f5c7da (patch) | |
| tree | 6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /code_backend_theme/static/src/xml | |
| parent | b57188be371d36d96caac4b8d65a40745c0e972c (diff) | |
initial commit
Diffstat (limited to 'code_backend_theme/static/src/xml')
| -rw-r--r-- | code_backend_theme/static/src/xml/sidebar.xml | 37 | ||||
| -rw-r--r-- | code_backend_theme/static/src/xml/styles.xml | 25 | ||||
| -rw-r--r-- | code_backend_theme/static/src/xml/top_bar.xml | 33 |
3 files changed, 95 insertions, 0 deletions
diff --git a/code_backend_theme/static/src/xml/sidebar.xml b/code_backend_theme/static/src/xml/sidebar.xml new file mode 100644 index 0000000..22c4f2f --- /dev/null +++ b/code_backend_theme/static/src/xml/sidebar.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates id="template" xml:space="preserve"> + <t t-extend="Menu"> + <t t-jquery=".o_main_navbar" t-operation="after"> + <div class="sidebar_panel" id="sidebar_panel"/> + </t> + </t> + <t t-name="code_backend_theme.Sidebar"> + <div class="sidebar"> + <div class="sidebar_close"> + <a id="closeSidebar" style="cursor: pointer;"> + <img src="/code_backend_theme/static/src/img/icons/close.png"/> + </a> + </div> + <div class="sidebar_logo"> + <img src="/web/binary/company_logo" class="logo_img"/> + </div> + <h6 class="sidebar_head">MENU</h6> + <ul class="sidebar_menu"> + <t t-foreach="widget.getApps()" t-as="app"> + <li> + <a role="menuitem" t-attf-href="#menu_id=#{app.menuID}" + class="nav-link" t-att-data-menu-id="app.menuID" + t-att-data-menu-xmlid="app.xmlID" + t-att-data-action-id="app.actionID"> + <img class="sidebar_img" + t-attf-src="data:image/png;base64,#{app.web_icon_data}"/> + <span class="sidebar_app_name"> + <t t-esc="app.name"/> + </span> + </a> + </li> + </t> + </ul> + </div> + </t> +</templates>
\ No newline at end of file diff --git a/code_backend_theme/static/src/xml/styles.xml b/code_backend_theme/static/src/xml/styles.xml new file mode 100644 index 0000000..cc61085 --- /dev/null +++ b/code_backend_theme/static/src/xml/styles.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<templates id="template" xml:space="preserve"> + <!--Align Invite Button in Settings--> + <t t-inherit="base_setup.res_config_invite_users" t-inherit-mode="extension" owl="1"> + <xpath expr="//div[hasclass('d-flex')]" position="attributes"> + <attribute name="class">d-flex align-items-center</attribute> + </xpath> + </t> + + <!--Remove App Icon in Settings--> + <t t-inherit="web.BaseSetting.Tabs" t-inherit-mode="extension" owl="1"> + <xpath expr="//div[hasclass('tab')]" position="replace"> + <div class="tab" t-attf-data-key="#{tab.key}" role="tab"> + <span class="app_name"><t t-esc="tab.string"/></span> + </div> + </xpath> + </t> + + <!--Active Color for App Counter--> + <t t-inherit="web.SearchPanel.Category" t-inherit-mode="extension" owl="1"> + <xpath expr="//span[hasclass('o_search_panel_counter')]" position="attributes"> + <attribute name="class">o_search_panel_counter ml-2 small</attribute> + </xpath> + </t> +</templates>
\ No newline at end of file diff --git a/code_backend_theme/static/src/xml/top_bar.xml b/code_backend_theme/static/src/xml/top_bar.xml new file mode 100644 index 0000000..703527c --- /dev/null +++ b/code_backend_theme/static/src/xml/top_bar.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="utf-8"?> +<templates id="template" xml:space="preserve"> + <t t-inherit="web.Menu" t-inherit-mode="extension" owl="1"> + <xpath expr="//nav[hasclass('o_main_navbar')]" position="replace"> + <nav class="o_main_navbar"> + <div class="top_heading"> + <ul class="o_menu_apps"/> + <a class="o_menu_brand" role="button"/> + </div> + <ul class="o_menu_sections" role="menu"/> + <ul class="o_menu_systray topbar_icon" role="menu"/> + </nav> + </xpath> + </t> + <t t-inherit="web.AppsMenu" t-inherit-mode="extension" owl="1"> + <xpath expr="//li[hasclass('dropdown')]" position="replace"> + <li class="dropdown"> + <a id="openSidebar" style="display: block; cursor: pointer;"> + <i class="fa fa-bars fa-lg"/> + </a> + <a id="closeSidebar" style="display: none; cursor: pointer;"> + <i class="fa fa-bars fa-lg"/> + </a> + </li> + </xpath> + </t> + + <t t-inherit="web.UserMenu" t-inherit-mode="extension" owl="1"> + <xpath expr="//span[hasclass('oe_topbar_name')]" position="replace"> + <div class="oe_topbar_name"/> + </xpath> + </t> +</templates>
\ No newline at end of file |
