From 51bbea4361d4fafe93997ed0f3dae05be8389c96 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 19 Sep 2024 19:52:02 +0100 Subject: wip: getting the thumbnails of resources --- pyblackbird_cc/templates/payments/cart_detail.html | 27 ++++++++++++++-------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'pyblackbird_cc/templates/payments') diff --git a/pyblackbird_cc/templates/payments/cart_detail.html b/pyblackbird_cc/templates/payments/cart_detail.html index 7c51814..3f95b83 100644 --- a/pyblackbird_cc/templates/payments/cart_detail.html +++ b/pyblackbird_cc/templates/payments/cart_detail.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load static %} - {% block content %} +{% block content %}

My basket

{% lorem %}

@@ -13,23 +13,32 @@ Product Price - Quantity - Total - {% for item in cart_items %} + {% for item in cart.items.all %} - {{ item.product.name }} - ${{ item.product.price }} - {{ item.quantity }} - £{{ item.total }} + +
+

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 }} {% endfor %} - Total: + Total: £{{ cart_total }} -- cgit v1.2.3