[FIX] website_sale{_options}: quantity over 999
The fields containing the quantity of product doesn't display numbers over 999 correctly: only 3 digits display in the field. We add a specific class `quantity` for input fields, with a padding of zero. The class `js_quantity` is not used since it is linked to jQuery events. opw-727640 opw-725671
This commit is contained in:
@@ -462,6 +462,10 @@ label.css_attribute_color.css_not_available {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.oe_website_sale input.quantity {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* ---- Publish managment and options ---- */
|
||||
.oe_overlay_options .dropdown ul[name="size"] table {
|
||||
margin-left: 20px;
|
||||
|
||||
@@ -387,6 +387,9 @@ label.css_attribute_color.css_not_available
|
||||
min-width: 48px
|
||||
text-align: center
|
||||
|
||||
.oe_website_sale input.quantity
|
||||
padding: 0
|
||||
|
||||
/* ---- Publish managment and options ---- */
|
||||
|
||||
.oe_overlay_options
|
||||
@@ -541,4 +544,4 @@ a.no-decoration
|
||||
opacity: 1
|
||||
|
||||
.ecom-zoomable img[data-zoom]
|
||||
cursor: zoom-in
|
||||
cursor: zoom-in
|
||||
|
||||
@@ -574,7 +574,7 @@
|
||||
<a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json">
|
||||
<i class="fa fa-minus"></i>
|
||||
</a>
|
||||
<input type="text" class="form-control" data-min="1" name="add_qty" value="1"/>
|
||||
<input type="text" class="form-control quantity" data-min="1" name="add_qty" value="1"/>
|
||||
<a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
@@ -874,7 +874,7 @@
|
||||
<a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json" data-no-instant="">
|
||||
<i class="fa fa-minus"></i>
|
||||
</a>
|
||||
<input type="text" class="js_quantity form-control" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty)" />
|
||||
<input type="text" class="js_quantity form-control quantity" t-att-data-line-id="line.id" t-att-data-product-id="line.product_id.id" t-att-value="int(line.product_uom_qty)" />
|
||||
<a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json" data-no-instant="">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
<a t-attf-href="#" class="mb8 input-group-addon js_add_cart_json">
|
||||
<i class="fa fa-minus"></i>
|
||||
</a>
|
||||
<input type="text" class="js_quantity form-control" data-min="1" name="add_qty" value="1"/>
|
||||
<input type="text" class="js_quantity form-control quantity" data-min="1" name="add_qty" value="1"/>
|
||||
<a t-attf-href="#" class="mb8 input-group-addon float_left js_add_cart_json">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user