From 09f40036b9c14161db90c6128861369c91c8c64e Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Mon, 16 Jul 2018 16:49:25 +0200 Subject: [PATCH] [REF] *: BS4, review the 'nav' and 'navbar' components Now the nav structure is more declarative: the 'nav-item' and 'nav-link' classes have to be put on related nav item and links. Also, the 'active' class has to be put on links instead of items. Same as for the navbar component: - The navbar structure was simplified and meant to be more declarative. - The navbar colors are also now handled by a different set of classes. The 'nav-stacked' class was removed and replaced by flex utilities. The set of classes for colors and nav styles also changed. --- .../static/src/xml/web_kanban_activity.xml | 4 +- addons/portal/static/src/scss/portal.scss | 27 ++--- addons/portal/views/portal_templates.xml | 51 ++++----- addons/survey/views/survey_result.xml | 28 ++--- .../static/src/js/views/form/form_renderer.js | 18 +-- .../static/src/scss/bootstrap_overridden.scss | 3 - addons/web/static/src/scss/webclient.scss | 2 +- addons/web/static/src/xml/kanban.xml | 6 +- addons/web/static/tests/views/form_tests.js | 40 +++---- addons/web/views/webclient_templates.xml | 30 +++-- addons/web_editor/static/src/xml/editor.xml | 12 +- addons/website/static/src/js/content/menu.js | 2 +- addons/website/static/src/scss/website.scss | 3 +- .../static/src/xml/website.pageProperties.xml | 4 +- addons/website/views/website_templates.xml | 30 +++-- .../views/website_blog_templates.xml | 34 +++--- .../website_crm_partner_assign_templates.xml | 18 +-- .../views/website_customer_templates.xml | 26 +++-- .../website_event/views/event_templates.xml | 22 ++-- .../views/event_track_templates.xml | 8 +- addons/website_forum/views/website_forum.xml | 105 +++++++++--------- .../website_forum_doc/views/website_doc.xml | 4 +- .../website_hr_recruitment_templates.xml | 26 +++-- .../views/website_links_graphs.xml | 6 +- .../views/website_links_template.xml | 6 +- .../views/website_mail_channel_templates.xml | 34 +++--- .../views/website_membership_templates.xml | 20 ++-- .../views/website_quote_templates.xml | 2 +- addons/website_sale/views/templates.xml | 42 +++---- .../views/website_sale_wishlist_template.xml | 4 +- .../static/src/scss/website_slides.scss | 4 +- .../website_slides/views/website_slides.xml | 49 ++++---- odoo/addons/base/tests/test_translate.py | 8 +- .../test_new_api/static/tests/x2many.js | 4 +- 34 files changed, 345 insertions(+), 337 deletions(-) diff --git a/addons/mail/static/src/xml/web_kanban_activity.xml b/addons/mail/static/src/xml/web_kanban_activity.xml index 65ece45d865..3e31d5c4bd5 100644 --- a/addons/mail/static/src/xml/web_kanban_activity.xml +++ b/addons/mail/static/src/xml/web_kanban_activity.xml @@ -24,12 +24,12 @@