Browse Source
[IMP] web_dialog_size: Select default dialog size by config
[IMP] web_dialog_size: Select default dialog size by config
* [IMP] web_dialog_size: Put dialog size expanded by default * [REM] web_popup_large: By duplication of the functionality * [IMP] web_dialog_size: README and contributors * [ADD] configuration parameter for default behavior [FIX] return super's promise [IMP] use fontawesome icons for buttonspull/347/head
Pedro M. Baeza
9 years ago
committed by
Holger Brunn
5 changed files with 77 additions and 48 deletions
-
25web_dialog_size/README.rst
-
5web_dialog_size/__openerp__.py
-
12web_dialog_size/static/src/css/web_dialog_size.css
-
68web_dialog_size/static/src/js/web_dialog_size.js
-
9web_dialog_size/static/src/xml/web_dialog_size.xml
@ -1,17 +1,15 @@ |
|||||
.modal .modal-header button.dialog_button_extend { |
.modal .modal-header button.dialog_button_extend { |
||||
padding-top: 0px; |
|
||||
padding-right: 3px; |
padding-right: 3px; |
||||
} |
} |
||||
|
|
||||
.modal .modal-header button.dialog_button_restore { |
.modal .modal-header button.dialog_button_restore { |
||||
padding-top: 1px; |
|
||||
padding-right: 5px; |
|
||||
} |
|
||||
|
|
||||
.modal .modal-header .dialog_button_hide { |
|
||||
display: none; |
|
||||
|
padding-right: 3px; |
||||
} |
} |
||||
|
|
||||
.dialog_full_screen { |
.dialog_full_screen { |
||||
width: calc(100% - 50px); |
width: calc(100% - 50px); |
||||
} |
} |
||||
|
|
||||
|
.modal .modal-header button.close { |
||||
|
font-size: 14px; |
||||
|
} |
@ -1,9 +1,12 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<templates id="template" xml:space="preserve"> |
<templates id="template" xml:space="preserve"> |
||||
<t t-extend="Dialog"> |
<t t-extend="Dialog"> |
||||
<t t-jquery="button" t-operation="after"> |
|
||||
<button type="button" class="dialog_button_extend close">o</button> |
|
||||
<button type="button" class="dialog_button_restore close">-</button> |
|
||||
|
<t t-jquery="button.close" t-operation="inner"> |
||||
|
<i class="fa fa-close" /> |
||||
|
</t> |
||||
|
<t t-jquery="button.close" t-operation="after"> |
||||
|
<button type="button" class="dialog_button_extend close"><i class="fa fa-expand" /></button> |
||||
|
<button type="button" class="dialog_button_restore close"><i class="fa fa-compress" /></button> |
||||
</t> |
</t> |
||||
</t> |
</t> |
||||
</templates> |
</templates> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue