From d2abe12612108b94135dcb0701614dc216fb92d2 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 13 Sep 2024 20:05:14 +0100 Subject: Adds Add to basket buttons to cards on resource list page --- .../templates/resources/resource_card_featured.html | 21 +++++++++++++-------- .../templates/resources/resource_card_standard.html | 9 ++++++--- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/pyblackbird_cc/templates/resources/resource_card_featured.html b/pyblackbird_cc/templates/resources/resource_card_featured.html index 473c928..586a851 100644 --- a/pyblackbird_cc/templates/resources/resource_card_featured.html +++ b/pyblackbird_cc/templates/resources/resource_card_featured.html @@ -28,15 +28,20 @@ {% else %}

{{ resource.description | markdown | safe }}

{% endif %} +
+

1 credit

+ +
+ {% if request.user.is_authenticated and request.user.is_staff %} - + Add PDFs + {% endif %} - \ No newline at end of file + diff --git a/pyblackbird_cc/templates/resources/resource_card_standard.html b/pyblackbird_cc/templates/resources/resource_card_standard.html index 9d560eb..b3d230e 100644 --- a/pyblackbird_cc/templates/resources/resource_card_standard.html +++ b/pyblackbird_cc/templates/resources/resource_card_standard.html @@ -33,12 +33,15 @@ {% endif %}

{{ resource.card_description }}

-

1 credit

+
+

1 credit

+ +
{% if request.user.is_authenticated and request.user.is_staff %} -