diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-07-12 15:10:47 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-07-12 17:13:23 +0200 |
| commit | dc9f942e0a2b8ef7022be1e6fd60d683017d6af3 (patch) | |
| tree | c34e4d49b08defc48a41fa65ff7ffc6e06ad4bb6 /addons/website/static/src/xml | |
| parent | edd8bad5d97ee489e85504791c807f0099ef24b5 (diff) | |
[FIX] website, *: restore publish buttons' design
* web
Those were broken with https://github.com/odoo/odoo/commit/9de1bc0eef6f5bfaa2a8d745431caa361ae91548
This commit takes advantage of the bug to also improve their design and
html validity a little bit.
Diffstat (limited to 'addons/website/static/src/xml')
| -rw-r--r-- | addons/website/static/src/xml/website.pageProperties.xml | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/addons/website/static/src/xml/website.pageProperties.xml b/addons/website/static/src/xml/website.pageProperties.xml index 357ff5cbfd9..61c0c507cf4 100644 --- a/addons/website/static/src/xml/website.pageProperties.xml +++ b/addons/website/static/src/xml/website.pageProperties.xml @@ -89,23 +89,19 @@ <div class="form-group"> <label class="control-label col-sm-3" for="is_menu">Show in Top Menu</label> <div class="col-sm-2"> - <a> - <label class="o_switch" for="is_menu" > - <input type="checkbox" t-att-checked="widget.page.menu_ids.length > 0 ? true : undefined" id="is_menu"/> - <span/> - </label> - </a> + <label class="o_switch" for="is_menu" > + <input type="checkbox" t-att-checked="widget.page.menu_ids.length > 0 ? true : undefined" id="is_menu"/> + <span/> + </label> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="is_homepage">Use as Homepage</label> <div class="col-sm-2"> - <a> - <label class="o_switch" for="is_homepage" > - <input type="checkbox" t-att-checked="widget.page.is_homepage ? true : undefined" id="is_homepage"/> - <span/> - </label> - </a> + <label class="o_switch" for="is_homepage" > + <input type="checkbox" t-att-checked="widget.page.is_homepage ? true : undefined" id="is_homepage"/> + <span/> + </label> </div> </div> <div class="form-group"> @@ -114,23 +110,19 @@ <i class="fa fa-question-circle-o" title="Hide this page from search results" role="img" aria-label="Info"></i> </label> <div class="col-sm-2"> - <a> - <label class="o_switch" for="is_indexed" > - <input type="checkbox" t-att-checked="widget.page.website_indexed ? true : undefined" id="is_indexed"/> - <span/> - </label> - </a> + <label class="o_switch" for="is_indexed" > + <input type="checkbox" t-att-checked="widget.page.website_indexed ? true : undefined" id="is_indexed"/> + <span/> + </label> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="is_published">Publish</label> <div class="col-sm-2"> - <a> - <button class="o_switch js_publish_btn bg-transparent"> - <input type="checkbox" t-att-checked="widget.page.website_published ? true : undefined" id="is_published"/> - <span/> - </button> - </a> + <label class="o_switch js_publish_btn" for="is_published"> + <input type="checkbox" t-att-checked="widget.page.website_published ? true : undefined" id="is_published"/> + <span/> + </label> </div> </div> <div class="form-group"> |
