diff options
| author | David Monjoie <dmo@odoo.com> | 2015-01-20 17:34:16 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-01-20 17:34:33 +0100 |
| commit | b84721cb21f774758e65c4d56d3cad635f73158f (patch) | |
| tree | b812263598dda46d08a8672c726f1b059695aa35 /addons/website/static/src/xml/website.backend.xml | |
| parent | 664b15ee884d3e87d2f613d68fe6d5beb5a6b94d (diff) | |
[IMP][REF] website: introducing a mixin class to handle website_published
and website_url fields. This will allow to remove custom code in every website
addons that redefine those two fields and the URL getter method.
The published button in backend has also been cleaned. It is now a link button
that redirects to the website_url. It does not change the publish status
anymore. Indeed it makes sense publish and unpublish website documents
directly in the website, while checking that everything is correct, instead
of doing it in the backend.
Next commits will update the Odoo addons to use this mixin and the new button
in the form view.
Diffstat (limited to 'addons/website/static/src/xml/website.backend.xml')
| -rw-r--r-- | addons/website/static/src/xml/website.backend.xml | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/addons/website/static/src/xml/website.backend.xml b/addons/website/static/src/xml/website.backend.xml index 2295268ee31..60c86e1ce8c 100644 --- a/addons/website/static/src/xml/website.backend.xml +++ b/addons/website/static/src/xml/website.backend.xml @@ -2,22 +2,10 @@ <templates id="template" xml:space="preserve"> <t t-name="WidgetWebsiteButton"> - - <div class="btn-group oe_WidgetWebsiteButton"> - <button class="btn btn-sm btn-success"> - <span class="oe_unpublish">Not Published</span> - <span class="oe_publish">Published</span> - </button> - <button id="dopprod-0" data-toggle="dropdown" type="button" class="btn btn-sm btn-default dropdown-toggle"> - <span class="caret"></span> - </button> - <ul role="menu" class="dropdown-menu" aria-labelledby="dopprod-0"> - <li> - <a href="#" title="View in frontend">Website</a> - </li> - </ul> + <div class="oe_WidgetWebsiteButton success"> + <strong class="oe_unpublish text-danger">Not Published</strong> + <strong class="oe_publish text-success">Published</strong> </div> - </t> </templates> |
