diff options
Diffstat (limited to 'alphabetlearning/templates/resources/resource_card_featured.html')
-rw-r--r-- | alphabetlearning/templates/resources/resource_card_featured.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alphabetlearning/templates/resources/resource_card_featured.html b/alphabetlearning/templates/resources/resource_card_featured.html index 8a92729..c83ac0f 100644 --- a/alphabetlearning/templates/resources/resource_card_featured.html +++ b/alphabetlearning/templates/resources/resource_card_featured.html @@ -32,7 +32,10 @@ {% endif %} <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> + <form action="{% url 'payments:add_to_basket' resource.id %}" method="POST"> + {% csrf_token %} + <button type="submit" class="btn btn-success fs-6 px-2 py-0">Add to basket</button> + </form> </div> </div> |