diff --git a/addons/web/static/src/js/core/dialog.js b/addons/web/static/src/js/core/dialog.js index 8c75db392fb..0bc370f782a 100644 --- a/addons/web/static/src/js/core/dialog.js +++ b/addons/web/static/src/js/core/dialog.js @@ -247,7 +247,7 @@ Dialog.confirm = function (owner, message, options) { */ Dialog.safeConfirm = function (owner, message, options) { var $checkbox = dom.renderCheckbox({ - text: options && options.securityMessage || _t("I am sure about this"), + text: options && options.securityMessage || _t("I am sure about this."), }).addClass('mb0'); var $securityCheck = $('
', { class: 'alert alert-' + (options && options.securityLevel || 'warning') + ' mt8 mb0', diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index e7929af071e..c2c3314f967 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -207,6 +207,10 @@ class Website(Home): @http.route(['/website/pages', '/website/pages/page/'], type='http', auth="user", website=True) def pages_management(self, page=1, sortby='name', search='', **kw): + # only website_designer should access the page Management + if not request.env.user.has_group('website.group_website_designer'): + raise werkzeug.exceptions.NotFound() + Page = request.env['website.page'] searchbar_sortings = { 'url': {'label': _('Sort by Url'), 'order': 'url'}, diff --git a/addons/website/static/src/js/menu/content.js b/addons/website/static/src/js/menu/content.js index 9a7e38244cf..cfc22c8bbee 100644 --- a/addons/website/static/src/js/menu/content.js +++ b/addons/website/static/src/js/menu/content.js @@ -267,6 +267,8 @@ var MenuEntryDialog = widget.LinkDialog.extend({ this.$('label[for="o_link_dialog_label_input"]').text(_t("Menu Label")); if (this.menu_link_options) { // add menu link option only when adding new menu this.$('#o_link_dialog_label_input').closest('.form-group').after(qweb.render('website.contentMenu.dialog.edit.link_menu_options')); + // remove the label that is automatically added before + this.$('#o_link_dialog_url_input').parent().siblings().html(''); this.$('input[name=link_menu_options]').on('change', function () { self.$('#o_link_dialog_url_input').closest('.form-group').toggle(); }); diff --git a/addons/website/static/src/js/utils.js b/addons/website/static/src/js/utils.js index e7f76376480..b00192c87d9 100644 --- a/addons/website/static/src/js/utils.js +++ b/addons/website/static/src/js/utils.js @@ -25,12 +25,7 @@ function autocompleteWithPages(self, $input) { }, }).then(function (exists) { var rs = _.map(exists, function (r) { - if (show_only_website_page_model) { - return r.loc + ' (' + r.name + ')'; - } - else { - return r.loc; - } + return r.loc; }); response(rs); }); diff --git a/addons/website/static/src/less/website.ui.components.less b/addons/website/static/src/less/website.ui.components.less index c1381f09e99..7f85829460a 100644 --- a/addons/website/static/src/less/website.ui.components.less +++ b/addons/website/static/src/less/website.ui.components.less @@ -454,7 +454,7 @@ body .modal { // Pages Management .o_page_management_info .o_switch{ - padding-top:7px; + padding-top: 7px; } #edit_website_pages{ .fa-check{ @@ -464,18 +464,16 @@ body .modal { color: #00a09d; } th{ - background-color: #875A7B; + background-color: @odoo-brand-primary; color: white; - opacity:0.8; } td{ a.fa{ - color:#875A7B; - opacity:0.8; - margin-left:5px; + color: @odoo-brand-primary; + margin-left: 5px; } .text-muted{ - opacity:0.5; + opacity: 0.5; } } } \ No newline at end of file diff --git a/addons/website/static/src/xml/website.contentMenu.xml b/addons/website/static/src/xml/website.contentMenu.xml index a5b7590ba53..82746308701 100644 --- a/addons/website/static/src/xml/website.contentMenu.xml +++ b/addons/website/static/src/xml/website.contentMenu.xml @@ -58,7 +58,7 @@
- +
diff --git a/addons/website/static/src/xml/website.pageProperties.xml b/addons/website/static/src/xml/website.pageProperties.xml index f21b0213f4e..b7b3b337d91 100644 --- a/addons/website/static/src/xml/website.pageProperties.xml +++ b/addons/website/static/src/xml/website.pageProperties.xml @@ -15,7 +15,7 @@
- +
@@ -24,7 +24,7 @@
- +
- + -

Pages Management

+

Manage your custom pages