diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-07-24 09:12:03 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-07-29 08:41:02 +0200 |
| commit | 71e9de4ecc8201911ca7ce17e7aad1349bb8610b (patch) | |
| tree | 181799c29a6667f06c92363d7b93c72725360343 /addons/web/static/src/xml | |
| parent | 4e24b81616dda662e5d2ae1e68d7fb53dc72c1e1 (diff) | |
[REF] web(_tests): list view (editable): action buttons
Refactoring of the DOM structure and classnames of the list view's action
buttons (in the control panel), for new design compatibility. This refactoring
was required as some addons shared between both editions (e.g. base_import)
define their own buttons and extend the ListView.buttons template to insert
them.
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 8217607f197..c7d3894e81a 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -705,7 +705,7 @@ <t t-name="ListView.buttons"> <t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')"> <div class="oe_list_buttons"> - <button type="button" class="oe_list_add btn btn-primary btn-sm"> + <button type="button" class="btn btn-sm btn-primary o_list_button_add"> <t t-esc="widget.options.addable"/> </button> </div> @@ -745,13 +745,13 @@ </td> </tr> <t t-extend="ListView.buttons"> - <t t-jquery="button.oe_list_add" t-operation="after"> - <button class="oe_button oe_list_save oe_highlight" - type="button">Save</button> - <span class="oe_alternative"> - <span class="oe_fade">or</span> - <a href="#" class="oe_bold oe_list_discard">Discard</a> - </span> + <t t-jquery="button.o_list_button_add" t-operation="after"> + <button type="button" class="btn btn-primary btn-sm o_list_button_save"> + Save + </button> + <button type="button" class="btn btn-default btn-sm o_list_button_discard"> + Discard + </button> </t> </t> <button t-name="ListView.row.text_button" type="button" |
