fixed whitespaces
rodzic
064c4cfa50
commit
2e68e3ed6f
|
@ -6,7 +6,7 @@
|
|||
<div class="container h-100 py-5">
|
||||
<div class="row d-flex justify-content-center align-items-center">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h3 class="fw-normal mb-0 text-black"> {% trans "Shopping Cart" %} </h3>
|
||||
<h3 class="fw-normal mb-0 text-black"> {% trans "Shopping Cart" %} </h3>
|
||||
</div>
|
||||
</div>
|
||||
{% for item in cart.get_items %}
|
||||
|
@ -17,16 +17,16 @@
|
|||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h5 class="fw-normal mb-0 text-black">{%trans "To Pay:"%} {{cart.total_price}}</h5>
|
||||
<h5 class="fw-normal mb-0 text-black">{%trans "To Pay:"%} {{cart.total_price}}</h5>
|
||||
</div>
|
||||
<div class="col-sm-6 text-end">
|
||||
<a href="{% url 'order' %}" class="btn btn-success btn-block btn-lg">{%trans "Proceed to Pay"%}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="row mt-3 mx-4">
|
||||
|
||||
|
||||
<div class="col-12">
|
||||
<label class="order-form-label">{% trans "Contact Details" %}</label>
|
||||
</div>
|
||||
|
@ -82,7 +82,7 @@
|
|||
{{form.zip_code}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-12 text-end mt-3">
|
||||
<div class="form-outline">
|
||||
<input type="submit" value="{% trans "Confirm" %}" class="btn btn-success btn-lg">
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<section class="h-100">
|
||||
<div class="container">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h3 class="fw-normal mb-0 text-black">{% trans "Customer Data" %}</h3>
|
||||
<h3 class="fw-normal mb-0 text-black">{% trans "Customer Data" %}</h3>
|
||||
</div>
|
||||
<div class="card mb-2 py-5">
|
||||
<div class="card-body">
|
||||
|
@ -52,7 +52,7 @@
|
|||
<div class="container mt-5">
|
||||
<div class="row d-flex justify-content-center align-items-center">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h3 class="fw-normal mb-0 text-black">{% trans "Order Items" %}</h3>
|
||||
<h3 class="fw-normal mb-0 text-black">{% trans "Order Items" %}</h3>
|
||||
</div>
|
||||
</div>
|
||||
{% for item in cart.get_items %}
|
||||
|
@ -63,16 +63,16 @@
|
|||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<h5 class="fw-normal mb-0 text-black">{% trans "To Pay:"%} {{cart.total_price}}</h5>
|
||||
<h5 class="fw-normal mb-0 text-black">{% trans "To Pay:"%} {{cart.total_price}}</h5>
|
||||
</div>
|
||||
<div class="col-sm-6 text-end">
|
||||
<a href="" class="btn btn-success btn-block btn-lg">{% trans "Confirm"%}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
<input type="number" id="quantity{{item.id}}" name="quantity" min="1" value="1" class="form-control form-control-sm">
|
||||
</div>
|
||||
<div class="col text-end">
|
||||
<button class="btn btn-outline-success add-to-cart-button"
|
||||
data-product-id="{{item.id}}"
|
||||
<button class="btn btn-outline-success add-to-cart-button"
|
||||
data-product-id="{{item.id}}"
|
||||
data-csrf-token="{{csrf_token}}"
|
||||
data-add-to-cart-url={% url "cart-action-add-product" %}
|
||||
data-bs-toggle="modal" data-bs-target="#addToCartModal"
|
||||
|
@ -22,4 +22,3 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
{% extends 'base.html'%}
|
||||
{% load static %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
{% block content %}
|
||||
|
||||
|
@ -46,5 +46,5 @@
|
|||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
|
Ładowanie…
Reference in New Issue