diff options
| author | Kishan Gajjar <kig@odoo.com> | 2019-05-23 10:47:47 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-06-25 08:56:58 +0000 |
| commit | 2ad49ec93e39ae5d59ccc17884408870e1c86c5e (patch) | |
| tree | 27b9e5b5519abd6623e7763e1c187de066ffcffb /addons/web/static/src/xml | |
| parent | 3e6bbe93af76120dd13aa162b1ae2d0c665eea06 (diff) | |
[IMP] web: add new options to the Dialog widget
Now we can display dialogs with or without header / footer / backdrop
and we can force the DOM to be put elsewhere than the body.
Part of https://github.com/odoo/odoo/pull/29353
task-1903256
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/dialog.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/dialog.xml b/addons/web/static/src/xml/dialog.xml index d5f6025d968..645e6e2391e 100644 --- a/addons/web/static/src/xml/dialog.xml +++ b/addons/web/static/src/xml/dialog.xml @@ -6,12 +6,12 @@ <div role="dialog" t-name="Dialog" t-attf-class="modal#{technical ? ' o_technical_modal' : ''}#{fullscreen ? ' o_modal_full': ''}" tabindex="-1" data-backdrop="static" t-att-id="_.uniqueId('modal_')" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> - <header class="modal-header"> + <header t-if="renderHeader" class="modal-header"> <h4 class="modal-title"><t t-raw="title"/><span class="o_subtitle text-muted small"><t t-esc="subtitle"/></span></h4> <button type="button" class="close" data-dismiss="modal" aria-label="Close" tabindex="-1">×</button> </header> <main class="modal-body"/> - <footer class="modal-footer"/> + <footer t-if="renderFooter" class="modal-footer"/> </div> </div> </div> |
