From c121648619c674aaf70cf1efb41ede6f2fe8429c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 19 Sep 2024 21:02:59 +0100 Subject: Looking crap but getting there - the basket... --- pyblackbird_cc/templates/payments/cart_detail.html | 71 +++++++++++----------- .../templates/payments/cart_lineitem.html | 17 ++++++ 2 files changed, 51 insertions(+), 37 deletions(-) create mode 100644 pyblackbird_cc/templates/payments/cart_lineitem.html (limited to 'pyblackbird_cc/templates') diff --git a/pyblackbird_cc/templates/payments/cart_detail.html b/pyblackbird_cc/templates/payments/cart_detail.html index 3f95b83..e38e2ae 100644 --- a/pyblackbird_cc/templates/payments/cart_detail.html +++ b/pyblackbird_cc/templates/payments/cart_detail.html @@ -6,45 +6,42 @@

My basket

{% lorem %}

{% if cart %} -
-
- - - - - - - - - {% for item in cart.items.all %} - - - - - {% endfor %} - - - - - - - -
ProductPrice
-
-

TODO: we don't have access to thumbnails yet!

-
- {{ item.resource.name }} -
- {% for tn_url, tn_filename in item.resource.thumbnails %} -

{{ tn_url }}

-
-  {{ tn_filename }} -
- {% endfor %} -
-
£{{ item.product.price }}
Total:£{{ cart_total }}
+
+
+
+ +
+
+ + + + + + + + + + {% for item in cart.items.all %} + + + + + {% endfor %} + + + + + + + +
ProductPrice
+ {% include "payments/cart_lineitem.html" with item=item %} + £{{ item.product.price }}
Total:£{{ cart_total }}
+ +
+
Checkout diff --git a/pyblackbird_cc/templates/payments/cart_lineitem.html b/pyblackbird_cc/templates/payments/cart_lineitem.html new file mode 100644 index 0000000..b639a7f --- /dev/null +++ b/pyblackbird_cc/templates/payments/cart_lineitem.html @@ -0,0 +1,17 @@ +
+
+
+ {{ item.resource.name }} +
+
+ {{ item.resource.card_description }} +
+
+ {% for tn_url in item.resource.thumbnail_urls %} +
+ unknown +
+ {% endfor %} +
+
+
-- cgit v1.2.3