changring buttons
This commit is contained in:
parent
b34dcf6d5b
commit
a77bb66622
|
|
@ -0,0 +1 @@
|
|||
# from . import models
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"name" : "Web extended",
|
||||
"author": "Shankar Ankepaka",
|
||||
"license" : "LGPL-3",
|
||||
"data":[
|
||||
|
||||
],
|
||||
'assets': {
|
||||
'web.assets_backend': [
|
||||
'/web_extended/static/src/xml/form_status_indicator_inherit.xml'
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-inherit="web.FormStatusIndicator" t-inherit-mode="extension">
|
||||
<xpath expr="//button[@t-ref='save']" position="replace">
|
||||
<div class="d-flex gap-2">
|
||||
<button style="font-size:10px; background-color:green;color:white;border-radius:4px"
|
||||
type="button"
|
||||
class="o_form_button_save btn btn-light border-0 px-3 py-1 lh-sm"
|
||||
data-hotkey="s"
|
||||
t-on-click.stop="save"
|
||||
data-tooltip="Save manually"
|
||||
aria-label="Save manually"
|
||||
t-ref="save">
|
||||
Save
|
||||
<i class="fa fa-check" aria-hidden="true"/>
|
||||
|
||||
</button>
|
||||
<button style="font-size:10px; background-color:red;color:white;border-radius:4px"
|
||||
type="button"
|
||||
class="o_form_button_cancel btn btn-light border-0 px-3 py-1 lh-sm"
|
||||
data-hotkey="j"
|
||||
t-on-click.stop="discard"
|
||||
data-tooltip="Discard all changes"
|
||||
aria-label="Discard all changes">
|
||||
Discard
|
||||
<i class="fa fa-times fa-fw" />
|
||||
</button>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue