From b8357bfa10733cdaa6f6fe354038723e910eb40e Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Tue, 16 Jul 2013 14:57:35 +0200 Subject: [PATCH] [IMP] website_sale: begin checkout view bzr revid: chm@openerp.com-20130716125735-wy0hwogrf18ssfhb --- addons/website/views/views.xml | 2 +- .../website_sale/static/src/css/ecommerce.css | 30 +-- .../static/src/css/ecommerce.sass | 26 ++- .../website_sale/static/src/xml/ecommerce.xml | 172 ++++++++++++++++-- addons/website_sale/views/ecommerce.xml | 3 +- 5 files changed, 192 insertions(+), 41 deletions(-) diff --git a/addons/website/views/views.xml b/addons/website/views/views.xml index 4e8994cc888..fb0540b14dd 100644 --- a/addons/website/views/views.xml +++ b/addons/website/views/views.xml @@ -39,7 +39,7 @@ - +
diff --git a/addons/website_sale/static/src/css/ecommerce.css b/addons/website_sale/static/src/css/ecommerce.css index fcdf0cb6d22..3cdd2e63d9e 100644 --- a/addons/website_sale/static/src/css/ecommerce.css +++ b/addons/website_sale/static/src/css/ecommerce.css @@ -2,17 +2,18 @@ font-family: "Lato"; font-size: 13px; } -.oe_ecommerce input { - border: 1px solid #dddddd; - font-size: 13px; - -webkit-border-radius: 3px; - -moz-border-radius: 3px; - -ms-border-radius: 3px; - -o-border-radius: 3px; - border-radius: 3px; - padding: 5px; - padding-left: 7px; - margin-bottom: 10px; +.oe_ecommerce input:not([type="radio"]):not([type="checkbox"]) { + height: 30px; +} +.oe_ecommerce label > input:not([type="radio"]):not([type="checkbox"]), .oe_ecommerce label > div { + display: block; + margin-top: 3px; +} +.oe_ecommerce label select { + margin-top: 3px; +} +.oe_ecommerce label > div > input { + margin-bottom: 0; } .oe_ecommerce .oe_total { margin-top: 10px; @@ -162,3 +163,10 @@ max-width: 64px; max-height: 64px; } +.oe_ecommerce .oe_checkout .accordion-inner { + padding: 9px; +} +.oe_ecommerce .oe_checkout .accordion-inner h4 { + border-bottom: 1px solid #dddddd; + margin-right: 30px; +} diff --git a/addons/website_sale/static/src/css/ecommerce.sass b/addons/website_sale/static/src/css/ecommerce.sass index fc1ca3b5722..1bcf6e12d1b 100644 --- a/addons/website_sale/static/src/css/ecommerce.sass +++ b/addons/website_sale/static/src/css/ecommerce.sass @@ -1,13 +1,17 @@ @import "compass/css3" + .oe_ecommerce - input - border: 1px solid #ddd - font-size: 13px - +border-radius(3px) - padding: 5px - padding-left: 7px - margin-bottom: 10px + input:not([type="radio"]):not([type="checkbox"]) + height: 30px + label + > input:not([type="radio"]):not([type="checkbox"]), > div + display: block + margin-top: 3px + select + margin-top: 3px + > div > input + margin-bottom: 0 .oe_total margin-top: 10px td @@ -116,4 +120,10 @@ margin: 0 3px img max-width: 64px - max-height: 64px \ No newline at end of file + max-height: 64px + .oe_checkout + .accordion-inner + padding: 9px + h4 + border-bottom: 1px solid #ddd + margin-right: 30px diff --git a/addons/website_sale/static/src/xml/ecommerce.xml b/addons/website_sale/static/src/xml/ecommerce.xml index 5241733b1d2..b4f47fef26f 100644 --- a/addons/website_sale/static/src/xml/ecommerce.xml +++ b/addons/website_sale/static/src/xml/ecommerce.xml @@ -2,28 +2,162 @@ -
-
- -
-
- Anim pariatur cliche... +
+
+
+ +
+
+
+

Checkout as a Guest or Register

+

Register with us for future convenience:

+
+ + +
+
Register and save time!
+

Register with us for future convenience:

+
    +
  • Fast and easy check out
  • +
  • Easy access to your order history and status
  • +
+ +
+
+

Login

+
Already registered?
+

Please log in below:

+ + + + +
+
-
-
-
- - Collapsible Group Item #2 - +
+ +
+
+ + + + + + + + + + +
+ + +
+
+ +
+
+
-
-
- Anim pariatur cliche... +
+ +
+
+ + + + + + + + + +
+ +
+
+
+
+
+ +
+
+
+ + +
+
+ + + + + +
+
+ +
+
+
+
+
+ +
+
+ Anim pariatur cliche... +
+ +
+
diff --git a/addons/website_sale/views/ecommerce.xml b/addons/website_sale/views/ecommerce.xml index cd1705be3be..a6e200087b8 100644 --- a/addons/website_sale/views/ecommerce.xml +++ b/addons/website_sale/views/ecommerce.xml @@ -208,6 +208,7 @@ Your informations +
-
- -
-