aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/resources/resource_card_standard.html
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-13 20:05:14 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-13 20:05:14 +0100
commitd2abe12612108b94135dcb0701614dc216fb92d2 (patch)
tree1148f5ea6f20a73ecc9d3503f5107c08f7b338e3 /pyblackbird_cc/templates/resources/resource_card_standard.html
parentdba3d4d65657e8ccefe35e026e7f64b96f255101 (diff)
Adds Add to basket buttons to cards on resource list page
Diffstat (limited to 'pyblackbird_cc/templates/resources/resource_card_standard.html')
-rw-r--r--pyblackbird_cc/templates/resources/resource_card_standard.html9
1 files changed, 6 insertions, 3 deletions
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 %}
</div>
<p>{{ resource.card_description }}</p>
- <p class="card-text m-1"><small class="text-muted">1 credit</small></p>
+ <div class="d-flex flex-row justify-content-between align-items-end mt-2">
+ <p class="card-text m-1"><small class="text-muted">1 credit</small></p>
+ <button type="button" class="btn btn-success fs-6 px-2 py-0">Add to basket</button>
+ </div>
</div>
</div>
{% if request.user.is_authenticated and request.user.is_staff %}
- <div class="card-footer">
- <a href="{% url 'resources:resource_update_metadata' resource.id %}"
+ <div class="card-footer">
+ <a href="{% url 'resources:resource_update_metadata' resource.id %}"
class="btn btn-outline-primary btn-sm">Edit</a>
<a href="{% url 'resources:resource_update_thumbnails' resource.id %}"
class="btn btn-outline-primary btn-sm">Edit Feature Images</a>