diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-01-05 13:13:09 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-01-06 16:03:09 +0100 |
| commit | f64c1c6b7457ca73ac01b6dd3cebdbaa2889baa1 (patch) | |
| tree | c92bfc03759fd4ba491c3884dc9f602bc72ad135 /addons/web/static/src/xml | |
| parent | 20b109fac982cee000b65db2d3a17b4f856f8d5c (diff) | |
[IMP] web: FieldDomain panel at top right instead of below
The FieldDomain is composed of a DomainSelector widget and a button
which allows to see the records which match the domain (or an error
message if the domain is wrong).
The button was placed below the domain selector. Now, in edit mode,
it is placed at the top-right of the domain selector, saving some
vertical space.
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index dc3119908fe..34387d9f507 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -669,12 +669,13 @@ t-att-maxlength="widget.field.size"/> </t> -<div t-name="FieldDomain" class="o_form_field_domain"> +<div t-name="FieldDomain" t-attf-class="o_form_field_domain#{widget.get('effective_readonly') ? '' : ' o_edit_mode'}"> <!-- domain selector will be instantiated here --> - <div class="mt8"> + <div class="o_form_field_domain_panel"> <i class="fa fa-arrow-right"/> - <span><span class="o_domain_records_count"/> Records Selected</span> - <button class="btn btn-default btn-xs o_domain_show_selection_button" type="button">See selection</button> + <button class="btn btn-xs btn-default o_domain_show_selection_button" type="button"> + <span class="o_domain_records_count"/> record(s) + </button> <span class="text-warning o_domain_error_message hidden"><i class="fa fa-exclamation-triangle"/> Invalid domain</span> </div> </div> @@ -683,7 +684,7 @@ <div t-if="!widget.readonly && !widget.noControlPanel" class="btn-group btn-group-sm pull-right o_domain_node_control_panel"> <button class="btn btn-default o_domain_delete_node_button"><i class="fa fa-minus"/></button> <button class="btn btn-default o_domain_add_node_button"><i class="fa fa-plus"/></button> - <button class="btn btn-default o_domain_add_node_button" t-att-data-branch="1"><i class="fa fa-ellipsis-h"/></button> + <button class="btn btn-default o_domain_add_node_button" data-branch="1"><i class="fa fa-ellipsis-h"/></button> </div> </t> <t t-name="DomainTree.OperatorSelector"> @@ -711,9 +712,9 @@ </t> <t t-else=""> <div> - <t t-if="widget.children.length === 1">Match the records with the following rule:</t> + <t t-if="widget.children.length === 1">Match records with the following rule:</t> <t t-else=""> - <span>Match the records with</span> + <span>Match records with</span> <t t-call="DomainTree.OperatorSelector"/> <span>of the following rules:</span> </t> |
