summaryrefslogtreecommitdiff
path: root/code_backend_theme/static/src/xml/sidebar.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /code_backend_theme/static/src/xml/sidebar.xml
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'code_backend_theme/static/src/xml/sidebar.xml')
-rw-r--r--code_backend_theme/static/src/xml/sidebar.xml37
1 files changed, 37 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