[FIX] css and layout fix in advanced search view
authorGéry Debongnie <ged@odoo.com>
Mon, 20 Oct 2014 10:42:58 +0000 (12:42 +0200)
committerGéry Debongnie <ged@odoo.com>
Tue, 21 Oct 2014 07:33:53 +0000 (09:33 +0200)
* make sure the searchbar allows text selection
* revert back to col-md (from col-lg) classes => looks better

addons/web/static/src/css/base.css
addons/web/static/src/css/base.sass
addons/web/static/src/js/views.js
addons/web/static/src/xml/base.xml

index 5445ab4..e0fe28a 100644 (file)
   padding: 2px 0 0 6px;
   font-size: 12px;
   height: 16px;
+  -webkit-user-select: initial;
+  -moz-user-select: initial;
+  user-select: initial;
 }
 .openerp .oe_searchview .oe_searchview_facets .oe_searchview_input:focus {
   outline: none;
index 3546a5c..e5b50b3 100644 (file)
@@ -1054,6 +1054,9 @@ $sheet-padding: 16px
                 padding: 2px 0 0 6px
                 font-size: 12px
                 height: 16px
+                -webkit-user-select: initial
+                -moz-user-select: initial
+                user-select: initial
                 &:focus
                     outline: none
             .oe_searchview_input:first-child
index cf33f7b..a985e4e 100644 (file)
@@ -661,7 +661,7 @@ instance.web.ViewManager =  instance.web.Widget.extend({
             if (self.searchview) {
                 var is_hidden = self.active_view.controller.searchable === false;
                 self.searchview.toggle_visibility(!is_hidden);
-                self.$header_col.toggleClass('col-lg-6', !is_hidden).toggleClass('col-lg-12', is_hidden);
+                self.$header_col.toggleClass('col-md-6', !is_hidden).toggleClass('col-md-12', is_hidden);
                 self.$search_col.toggle(!is_hidden);
             }
             self.display_breadcrumbs();
index ecb48d6..f7441cc 100644 (file)
 <div t-name="ViewManager" class="oe-view-manager">
     <div class="oe-view-manager-header container-fluid">
         <div class="row">
-            <div class="col-lg-6 oe-header-title">
+            <div class="col-md-6 oe-header-title">
                 <div t-if="widget.session.debug" class="oe_debug_view btn-group btn-group-sm"/>
                 <ol class="oe-view-title breadcrumb" t-if="widget.flags.display_title !== false">
                 </ol>
             </div>
-            <div class="oe-view-manager-search-view col-lg-6" />
+            <div class="oe-view-manager-search-view col-md-6" />
         </div>
         <div class="row">
-            <div class="col-lg-6">
+            <div class="col-md-6">
                 <div class="oe-view-manager-buttons">
                     <t t-foreach="widget.views" t-as="view">
                         <div t-attf-class="oe-#{view}-buttons"/>
                 </div>
                 <div class="oe-view-manager-sidebar"></div>
             </div>
-            <div class="col-lg-6">
+            <div class="col-md-6">
                 <div class="oe-search-options btn-group"/>
                 <div class="oe-right-toolbar">
                     <div class="oe-view-manager-pager"></div>
     </label>
 </t>
 
-<div t-name="PivotView" class="test"/>
+<div t-name="PivotView" class="oe_pivot"/>
 
 <t t-name="PivotView.buttons">
     <div class="btn-group btn-group-sm">
-        <button class="btn btn-default fa fa-expand oe-pivot"></button>
-        <button class="btn btn-default fa fa-arrows-alt oe-pivot"></button>
-        <button class="btn btn-default fa fa-download oe-pivot"></button>
+        <button class="btn btn-default fa fa-expand oe-pivot-flip"></button>
+        <button class="btn btn-default fa fa-arrows-alt oe-pivot-expand-all"></button>
+        <button class="btn btn-default fa fa-download oe-pivot-download"></button>
     </div>
     <div class="btn-group btn-group-sm"> 
         <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
     </div>
 </t>
 
+<div t-name="PivotView.nodata" class="oe_view_nocontent" >
+    <div class="oe_empty_custom_dashboard">
+        <p><b>No data to display.</b></p>
+        <p>
+                No data available for this pivot table.  Try to add some records, or make sure
+                that there is at least one measure and no active filter in the search bar.
+        </p>
+    </div>
+</div>
+
 
 <t t-name="Widget">
     Unhandled widget