[IMP]website_sale: no product message for public users
authorChristophe Matthieu <chm@openerp.com>
Tue, 14 Jan 2014 16:29:25 +0000 (17:29 +0100)
committerChristophe Matthieu <chm@openerp.com>
Tue, 14 Jan 2014 16:29:25 +0000 (17:29 +0100)
bzr revid: chm@openerp.com-20140114162925-z1gcl5h2rkxb7crx

addons/website/static/src/css/editor.css
addons/website/static/src/css/editor.sass
addons/website/static/src/css/website.css
addons/website/static/src/css/website.sass
addons/website_sale/views/website_sale.xml

index 11cfad4..d786830 100644 (file)
   outline: none !important;
 }
 
+.css_editable_display {
+  display: block !important;
+}
+
 .css_non_editable_mode_hidden {
   display: none;
 }
index 0ea928d..6666525 100644 (file)
@@ -67,6 +67,9 @@
 .oe_editable:focus
     outline: none !important
 
+.css_editable_display
+    display: block !important
+
 .css_non_editable_mode_hidden
     display: none
 
index 425fbd1..a047753 100644 (file)
@@ -258,6 +258,10 @@ footer {
   content: "Drag Building Blocks Here";
 }
 
+.css_editable_display {
+  display: none;
+}
+
 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
 .navbar .nav > li > p {
   margin-bottom: 0px;
index cb7a86c..c509beb 100644 (file)
@@ -174,6 +174,9 @@ footer
 .oe_structure.oe_editable.oe_empty:empty:before, .oe_editable[data-oe-type=html]:empty:before, .oe_structure.oe_editable.oe_empty > .oe_drop_zone.oe_insert:only-child:before, [data-oe-type=html] > .oe_drop_zone.oe_insert:only-child:before
     content: 'Drag Building Blocks Here'
 
+.css_editable_display
+    display: none
+
 /* ---- HACK FOR COVERING UP CK EDITOR BOGUS P INSERTION --- */
 
 .navbar .nav > li > p
index bc9695c..902bb9e 100644 (file)
               </table>
               <t t-if="not bins">
                 <div class="text-center text-muted">
-                  <h3>No product found</h3>
+                  <h3 class="css_editable_display">No product found</h3>
+                  <h3 class="css_non_editable_mode_hidden">There isn't available products right know, click <a t-href="/page/website.contactus">here</a> to contact us</h3>
                   <t groups="base.group_website_publisher">
                     <p>Click on "Content" to define a new product or "Help" for more informations.</p>
                     <img src="/website/static/src/img/content_here.png"/>