diff options
| author | Aaron Bohy <aab@odoo.com> | 2015-01-21 16:36:23 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2015-03-20 16:17:06 +0100 |
| commit | 53a9f6c081d0d91c99d8f035fd09d813a16172e8 (patch) | |
| tree | a4da311c1bda804c4800b4b272a316320ef9c25b /addons/web/static/src/css/base.sass | |
| parent | db592efca282d12f6fcef38a13dc2cbff31522b8 (diff) | |
[IMP] Web et al.: ControlPanel extracted from ViewManager
The ControlPanel is still instantiated by the ViewManager.
Changes details:
* web: views.js:
Code related to views header is extracted from the ViewManager
to a new Widget named ControlPanel.
Also uses the headless flag to tell the inner view not to put
its buttons (use case: kanban) or pager (use case: list) in the
header as it is hidden.
* web: view_form.js, base.xml:
Uses the headless flag at initialization of the One2ManyViewManager
widget instead of extending the ViewManager template (which doesn't
handle the header anymore).
* web: view_list.js:
Test on this.options.$pager instead of this.options.$buttons
when dealing with pager.
Note: the behavior for list view is unchanged and has a bug.
If there are more then 80 records to display, only the 80th
first are display, and as there is no pager, there is no way
to see the remaining ones. A fix for this would be to use a
light ControlPanel in One2Many views as well. With this,
there won't be duplicated .oe-'view'-buttons/sidebar/pager
anymore.
* web: view_graph.js, view_pivot.js:
Only render buttons in non-headless mode
* web_dashboard: dashboard.js:
Fix some references that were broken with ControlPanel extraction
* web_view_editor: web_view_editor.js:
Extend ControlPanel instead of ViewManager
* Changes in selector of ControlPanel elements in several addons:
* base_import
* mail
* web
Diffstat (limited to 'addons/web/static/src/css/base.sass')
| -rw-r--r-- | addons/web/static/src/css/base.sass | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 1432352aa7e..63ef0cd5bdb 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -840,7 +840,7 @@ $sheet-padding: 16px display: block .oe-view-manager-debug margin-right: 5px - .oe-view-manager-header + .oe-control-panel background-color: rgb(240, 238, 238) border-bottom: 1px solid #afafb6 -webkit-flex-shrink: 0 @@ -891,32 +891,32 @@ $sheet-padding: 16px -moz-user-select: initial -webkit-user-select: initial user-select: initial - .oe-view-manager-search-view + .oe-cp-search-view padding-top: 5px - .oe-view-manager-switch + .oe-cp-switch-buttons button width: 34px - .oe-vm-switch-kanban:before + .oe-cp-switch-kanban:before content: "\f009" - .oe-vm-switch-list:before + .oe-cp-switch-list:before content: "" - .oe-vm-switch-form:before + .oe-cp-switch-form:before content: "\f044" - .oe-vm-switch-graph:before + .oe-cp-switch-graph:before content: "\f080" - .oe-vm-switch-calendar:before + .oe-cp-switch-calendar:before content: "\f073" - .oe-vm-switch-gantt:before + .oe-cp-switch-gantt:before content: "\f0ae" - .oe-vm-switch-pivot:before + .oe-cp-switch-pivot:before content: "\f0ce" - .oe-vm-switch-tree:before + .oe-cp-switch-tree:before content: "\f036" - .oe-view-manager-buttons + .oe-cp-buttons display: inline-block > div display: none - .oe-view-manager-sidebar + .oe-cp-sidebar display: inline-block float: right .oe_form_binary_form @@ -951,7 +951,7 @@ $sheet-padding: 16px .oe-pager-buttons min-height: 30px .oe_view_manager_inline, .oe_view_manager_inlineview - > .oe-view-manager-header + > .oe-control-panel-content display: none // }}} @@ -2549,7 +2549,7 @@ body.oe_single_form box-shadow: 0px 0px 0px .oe_list overflow-x: visible - .oe_view_manager_current > .oe_view_manager_header + .oe-control-panel border: 0px !important box-shadow: 0px 0px 0px text-shadow: none |
