diff options
| author | Dharmraj Jhala <dja@odoo.com> | 2019-11-05 10:50:03 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-11-06 15:39:03 +0000 |
| commit | 655bd95f6de70b9d38ad9031156a416303f4efe5 (patch) | |
| tree | 70b0928df7717f4dcfa8eefa38debf8e6d680de7 /addons/website_form/views | |
| parent | c755fb125785c75e319332acd9cc5579fd414415 (diff) | |
[IMP] website_form: improve radio/checkbox behavior and layout
This commit implements following changes:
- aligns radio / checkboxes with their label
- adds an option on radio buttons and checkboxes to
display them horizontally or vertically
Part of https://github.com/odoo/odoo/pull/30595
task-1874350
Diffstat (limited to 'addons/website_form/views')
| -rw-r--r-- | addons/website_form/views/snippets.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/website_form/views/snippets.xml b/addons/website_form/views/snippets.xml index c485b64d8c3..8bb416b1957 100644 --- a/addons/website_form/views/snippets.xml +++ b/addons/website_form/views/snippets.xml @@ -55,6 +55,17 @@ <we-button data-toggle-class="o_website_form_field_hidden" data-no-preview="true">Hidden</we-button> </div> + <!-- Add an option to display radio buttons / checkboxes horizontally or vertically --> + <div data-js='website_form_editor_choice_field_display' data-selector=".o_website_form_flex"> + <we-collapse-area> + <we-toggler>Display</we-toggler> + <we-collapse data-no-preview="true"> + <we-button data-website_form_choice_field_display="horizontal">Horizontal</we-button> + <we-button data-website_form_choice_field_display="vertical">Vertical</we-button> + </we-collapse> + </we-collapse-area> + </div> + <!-- Add move, duplicate and remove controllers to checkboxes and radio buttons --> <div data-selector=".o_website_form_flex_item" data-drop-near=".o_website_form_flex_item"/> |
