mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[15.0][MIG] web_dialog_size: migration to 15.0
This commit is contained in:
6
web_dialog_size/static/src/xml/DialogDraggable.xml
Normal file
6
web_dialog_size/static/src/xml/DialogDraggable.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<templates>
|
||||
<t t-name="DialogDraggable" owl="1">
|
||||
<t t-slot="default" />
|
||||
</t>
|
||||
</templates>
|
||||
21
web_dialog_size/static/src/xml/ExpandButton.xml
Normal file
21
web_dialog_size/static/src/xml/ExpandButton.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<templates>
|
||||
<t t-name="web_dialog_size.ExpandButton" owl="1">
|
||||
<button
|
||||
t-if="props.getsize() == 'dialog_full_screen'"
|
||||
type="button"
|
||||
class="close dialog_button_extend"
|
||||
t-on-click="dialog_button_restore"
|
||||
>
|
||||
<i class="fa fa-compress" />
|
||||
</button>
|
||||
<button
|
||||
t-if="props.getsize() != 'dialog_full_screen'"
|
||||
type="button"
|
||||
class="close dialog_button_restore"
|
||||
t-on-click="dialog_button_extend"
|
||||
>
|
||||
<i class="fa fa-expand" />
|
||||
</button>
|
||||
</t>
|
||||
</templates>
|
||||
@@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
<templates xml:space="preserve">
|
||||
<!-- This is for old Dialog template.
|
||||
Because Odoo haven't done every template to OWL. -->
|
||||
<t t-extend="Dialog">
|
||||
<t t-jquery="button.close" t-operation="inner">
|
||||
<i class="fa fa-close" />
|
||||
@@ -13,4 +15,16 @@
|
||||
</button>
|
||||
</t>
|
||||
</t>
|
||||
|
||||
<t t-inherit="web.ActionDialog" t-inherit-mode="extension" owl="1">
|
||||
<xpath expr="//div[hasclass('modal-content')]" position="before">
|
||||
<DialogDraggable />
|
||||
</xpath>
|
||||
<DialogDraggable position="inside">
|
||||
<xpath expr="//div[hasclass('modal-content')]" position="move" />
|
||||
</DialogDraggable>
|
||||
<xpath expr="//button[hasclass('close')]" position="before">
|
||||
<ExpandButton getsize="getSize" setsize="setSize" />
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
|
||||
Reference in New Issue
Block a user