summaryrefslogtreecommitdiff
path: root/addons/website/static/src/less/website.ui.components.less
diff options
context:
space:
mode:
authorrde <rde@odoo.com>2017-10-09 17:13:39 +0200
committerJeremy Kersten <jke@odoo.com>2017-10-12 16:20:42 +0200
commita91a3a563338e746d6d23cd57551af30e322e367 (patch)
treef99ded9d67805b67243b73a698370c6bf1579407 /addons/website/static/src/less/website.ui.components.less
parenta8fc544c5ce5a7c1da5c0c0a664a06b12fd0b247 (diff)
[IMP] website: warn user about key change when editing special file name
The idea is to warn user if he created a special file (website.page with supported extension) and he wants to change the file's name, which will at the end also change the key). If this special file has been t-called elsewhere, they t-call wont work anymore This is why warning user is needed. Note that this is different than the already existing page_search_dependencies that is just checking if the URL is present in menus, templates, blog or pages. This is about checking if the key is present somewhere. (we assume that if the key is present, it is surely about a t-call. Technically, the flow is: 1. Get supported extension 2. Get key dependencies 3. Check if user modify name 4. If name changed and it is/was a supported extension (special file) and it has dependencies (surely t-call) then warn user these call wont work anymore -- search_page_dependencies is also improved by returning links to be clickable (on delete dialog eg) and splitting template/page results. it also refactor dependencies warning that was creating HTML in javascript into using XML template
Diffstat (limited to 'addons/website/static/src/less/website.ui.components.less')
-rw-r--r--addons/website/static/src/less/website.ui.components.less9
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/website/static/src/less/website.ui.components.less b/addons/website/static/src/less/website.ui.components.less
index 7f85829460a..8cbf1ba7d98 100644
--- a/addons/website/static/src/less/website.ui.components.less
+++ b/addons/website/static/src/less/website.ui.components.less
@@ -453,8 +453,13 @@ body .modal {
}
// Pages Management
-.o_page_management_info .o_switch{
- padding-top: 7px;
+.o_page_management_info{
+ .o_switch{
+ padding-top: 7px;
+ }
+}
+.popover_dep{
+ overflow-x: auto;
}
#edit_website_pages{
.fa-check{