aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/payments/cart_detail.html
diff options
context:
space:
mode:
Diffstat (limited to 'pyblackbird_cc/templates/payments/cart_detail.html')
-rw-r--r--pyblackbird_cc/templates/payments/cart_detail.html43
1 files changed, 11 insertions, 32 deletions
diff --git a/pyblackbird_cc/templates/payments/cart_detail.html b/pyblackbird_cc/templates/payments/cart_detail.html
index e38e2ae..8c6c01b 100644
--- a/pyblackbird_cc/templates/payments/cart_detail.html
+++ b/pyblackbird_cc/templates/payments/cart_detail.html
@@ -6,45 +6,24 @@
<h1 class="mb-4">My basket</h1>
<p class="text-body-secondary">{% lorem %}</p>
{% if cart %}
- <div class="row justify-content-md-center">
+ <div class="row">
<div class="col-8 my-5 bg-secondary-subtle border border-1 rounded border-dark">
<div class="my-4 bg-white rounded">
- <div class="d-flex">
+ <div>
+ {% for item in cart.items.all %}
+ <div class="my-3">
+ {% include "payments/cart_lineitem.html" with item=item %}
+ </div>
+ {% endfor %}
</div>
-
-
- <table class="table">
- <thead>
- <tr>
- <th>Product</th>
- <th>Price</th>
- </tr>
- </thead>
- <tbody>
- {% for item in cart.items.all %}
- <tr>
- <td>
- {% include "payments/cart_lineitem.html" with item=item %}
- </td>
- <td>&#163;{{ item.product.price }}</td>
- </tr>
- {% endfor %}
- </tbody>
- <tfoot>
- <tr>
- <th class="text-end">Total:</th>
- <th>&#163;{{ cart_total }}</th>
- </tr>
- </tfoot>
- </table>
-
</div>
</div>
- </div>
- <div class="d-flex justify-content-end">
- <a href="#" class="btn btn-primary">Checkout</a>
+ <div class="col-4 my-5">
+ {% include "payments/cart_sidepanel.html" with cart=cart %}
+ </div>
+
</div>
{% else %}
<p>Your cart is empty.</p>