mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_responsive: Migration to 15.0
This commit is contained in:
12
web_responsive/static/src/components/hotkey/hotkey.scss
Normal file
12
web_responsive/static/src/components/hotkey/hotkey.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
/* Copyright 2021 ITerra - Sergey Shebanin
|
||||
* License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */
|
||||
|
||||
// Shortcut table ui improvement
|
||||
.o_shortcut_table {
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
max-width: 400px;
|
||||
td {
|
||||
padding: 0 20px;
|
||||
}
|
||||
}
|
||||
71
web_responsive/static/src/components/hotkey/hotkey.xml
Normal file
71
web_responsive/static/src/components/hotkey/hotkey.xml
Normal file
@@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
Copyright 2021 ITerra - Sergey Shebanin
|
||||
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
||||
-->
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-inherit="web.NavBar.SectionsMenu" t-inherit-mode="extension" owl="1">
|
||||
<xpath
|
||||
expr="//t[@t-foreach='sections']//t[@t-set='hotkey']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute
|
||||
name="t-value"
|
||||
t-translation="off"
|
||||
>'shift+' + ((section_index + 1) % 10).toString()</attribute>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//t[@t-if='currentAppSectionsExtra.length']//t[@t-set='hotkey']"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute
|
||||
name="t-value"
|
||||
t-translation="off"
|
||||
>'shift+' + (sectionsVisibleCount + 1 % 10).toString()</attribute>
|
||||
</xpath>
|
||||
</t>
|
||||
<t t-inherit="web.Pager" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//button[hasclass('o_pager_previous')]" position="attributes">
|
||||
<attribute
|
||||
name="t-att-accesskey"
|
||||
>props.withAccessKey ? 'z' : false</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button[hasclass('o_pager_next')]" position="attributes">
|
||||
<attribute
|
||||
name="t-att-accesskey"
|
||||
>props.withAccessKey ? 'x' : false</attribute>
|
||||
</xpath>
|
||||
</t>
|
||||
<t t-inherit="web.UserMenu.shortcutsTable" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('row')]" position="attributes">
|
||||
<attribute name="class" separator=" " add="justify-content-center" />
|
||||
</xpath>
|
||||
<xpath expr="//div[hasclass('row')]/div" position="attributes">
|
||||
<attribute name="class" />
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='a']" position="replace">
|
||||
<span class="o_key">e</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='a']" position="replace">
|
||||
<span class="o_key">e</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='j']" position="replace">
|
||||
<span class="o_key">d</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='j']" position="replace">
|
||||
<span class="o_key">d</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='p']" position="replace">
|
||||
<span class="o_key">z</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='p']" position="replace">
|
||||
<span class="o_key">z</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='n']" position="replace">
|
||||
<span class="o_key">x</span>
|
||||
</xpath>
|
||||
<xpath expr="//span[text()='n']" position="replace">
|
||||
<span class="o_key">x</span>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user