[IMP] point_of_sale: pretty error message when trying to access the point_of_sale...
authorFrédéric van der Essen <fva@openerp.com>
Fri, 23 Nov 2012 15:49:17 +0000 (16:49 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Fri, 23 Nov 2012 15:49:17 +0000 (16:49 +0100)
bzr revid: fva@openerp.com-20121123154917-u720g4woq4xga1uo

addons/point_of_sale/static/src/css/pos.css
addons/point_of_sale/static/src/img/pos_screenshot.jpg [new file with mode: 0644]
addons/point_of_sale/static/src/xml/pos.xml

index 1b98c25..a6aae14 100644 (file)
     border-radius: 4px;
 }
 
+/*  ********* Unsupported Browser Page ********* */
+
+.point-of-sale .not-supported-browser{
+    position: absolute;
+    z-index: 100000;
+    top: 0; bottom: 0; left: 0; right: 0;
+    background: #2C2C2C;
+}
+.point-of-sale .not-supported-browser .message{
+    width:600px;
+    margin-top: 100px;
+    margin-left: auto;
+    margin-right: auto;
+    text-align: center;
+    color: #d3d3d3;
+    font-size: 14px;
+}
+.point-of-sale .not-supported-browser img{
+    box-shadow: 0px 3px 38px rgba(0, 0, 0, 0.39);
+}
diff --git a/addons/point_of_sale/static/src/img/pos_screenshot.jpg b/addons/point_of_sale/static/src/img/pos_screenshot.jpg
new file mode 100644 (file)
index 0000000..1e884eb
Binary files /dev/null and b/addons/point_of_sale/static/src/img/pos_screenshot.jpg differ
index 368188c..85397c4 100644 (file)
             </div>
             <div class="loader">
             </div>
+            &lt;!--[if IE]&gt;
+            <div class='not-supported-browser'>
+                <div class='message'>
+                    <img src='/point_of_sale/static/src/img/pos_screenshot.jpg' />
+                    <p>
+                        The Point of Sale is not supported by Microsoft Internet Explorer. Please use
+                        a modern browser like <a href="http://www.mozilla.org/firefox/" target="_blank">Mozilla Firefox</a> 
+                        or <a href="http://www.google.com/chrome" target="_blank">Google Chrome</a>. 
+                    </p>
+                </div>
+            </div>
+            &lt;![endif]--&gt;
         </div>
     </t>