Commit 19805962 by Vedran Karacic Committed by Vedran Karačić

Fix basket quantity update element design.

parent 1ddc8877
...@@ -409,6 +409,30 @@ ...@@ -409,6 +409,30 @@
margin: 0; margin: 0;
} }
.quantity-group {
padding-left: 0;
}
.quantity-label {
display: inline-block;
padding-right: 10px;
}
.checkout-quantity {
display: inline-block;
}
.spinner {
width: 70px;
float: left;
padding-right: 10px;
}
.quantity-update {
width: 80px;
float:left;
}
fieldset > legend { fieldset > legend {
padding-top: 20px; padding-top: 20px;
} }
...@@ -464,6 +488,8 @@ ...@@ -464,6 +488,8 @@
padding: 0; padding: 0;
.product-image { .product-image {
padding-left: 0;
img { img {
width: 100%; width: 100%;
max-width: 150px; max-width: 150px;
...@@ -472,6 +498,8 @@ ...@@ -472,6 +498,8 @@
} }
.product-information { .product-information {
padding-left: 0;
.product-name { .product-name {
margin-bottom: 0; margin-bottom: 0;
font-weight: bold; font-weight: bold;
...@@ -548,7 +576,7 @@ ...@@ -548,7 +576,7 @@
border-left: none; border-left: none;
} }
#summary #basket-information .product { #summary .product {
.product-image { .product-image {
img { img {
max-width: 100%; max-width: 100%;
......
...@@ -30,13 +30,13 @@ ...@@ -30,13 +30,13 @@
{% endif %} {% endif %}
</div> </div>
{% if line_data.enrollment_code %} {% if line_data.enrollment_code %}
<div class="col-sm-12 col-xs-12 form-inline"> <div class="col-sm-12 col-xs-12 form-inline quantity-group">
<label class="product-price-label text-muted">{% trans 'Quantity' %}</label> <label class="product-price-label text-muted quantity-label">{% trans 'Quantity' %}</label>
<div class="checkout-quantity form-group"> <div class="checkout-quantity form-group">
<div class="input-group spinner col-sm-3 {% if form.errors %}error{% endif %}"> <div class="input-group spinner {% if form.errors %}error{% endif %}">
{% render_field form.quantity class+="quantity form-control" min=min_seat_quantity %} {% render_field form.quantity class+="quantity form-control" min=min_seat_quantity %}
</div> </div>
<button class="btn btn-primary update-button" type="submit" <button class="btn btn-primary update-button quantity-update" type="submit"
data-loading-text="{% trans 'Updating...' %}">{% trans "Update" %}</button> data-loading-text="{% trans 'Updating...' %}">{% trans "Update" %}</button>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment