diff options
| author | fja-odoo <fja@odoo.com> | 2019-06-19 15:28:56 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-08-08 16:05:33 +0000 |
| commit | 736353b169d451d48cb9d5ae82c2d342543ba57e (patch) | |
| tree | 9734e1e729938710074aab8b96a787ac889a9f4e /addons/website/static/src/xml | |
| parent | 50155ae08e6e3f4a60bf3142174f56bfd246d865 (diff) | |
[IMP] website, *: improve published smart button
* = web, website_blog, website_crm_partner_assign, website_event,
website_event_track, website_forum, website_hr_recruitment,
website_livechat, website_partner, website_profile, website_sale,
website_sale_delivery, website_slides
The published button name is a bit ambiguous, now it will clearly state
what it does with a new title : "Go to Website". The "Published",
"Unpublished" state is shown with the globe icon changing color
(green and red) and a title on the button.
Badge and Delivery don't have a website page, the button will then be
a publish/unpublish button in the backend.
task-2002435
closes odoo/odoo#34261
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/website/static/src/xml')
| -rw-r--r-- | addons/website/static/src/xml/website.backend.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/addons/website/static/src/xml/website.backend.xml b/addons/website/static/src/xml/website.backend.xml index 25745afb6b8..1063de39fed 100644 --- a/addons/website/static/src/xml/website.backend.xml +++ b/addons/website/static/src/xml/website.backend.xml @@ -5,6 +5,15 @@ <span class="o_stat_text">On Website</span> </div> + <t t-name="WidgetWebsiteButtonIcon"> + <button type="button" class="btn oe_stat_button"> + <i class="fa fa-fw o_button_icon fa-globe"/> + <div class="o_stat_info"> + <span class="o_stat_text">Go to<br/>Website</span> + </div> + </button> + </t> + <t t-name="website.WebsiteDashboardMain"> <div class="o_dashboards"> <div class="container-fluid o_website_dashboard"> |
