diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-21 21:25:22 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-21 21:25:22 +0100 |
commit | a6a5a0ef97efd5eabdc65a7f78adb670b0350269 (patch) | |
tree | 85e4b8fdd50424ac628d85c45f45845f94876d87 /alphabetlearning/templates/base.html | |
parent | 886aca24778b72edd89726c90783f8c32438db2c (diff) |
wip: still working on the resource index page
Diffstat (limited to 'alphabetlearning/templates/base.html')
-rw-r--r-- | alphabetlearning/templates/base.html | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/alphabetlearning/templates/base.html b/alphabetlearning/templates/base.html index a0b2424..def801e 100644 --- a/alphabetlearning/templates/base.html +++ b/alphabetlearning/templates/base.html @@ -61,12 +61,10 @@ {% endif %} </li> <li> - {% if request.user.shoppingcart %} <!- TODO - fix this, the logic should be different button if no cart -> <! this is a problem because it seems you can have an empty cart -> - <div> <a href="{% url "payments:cart_detail" %}" class="full-basket-button"> <span> Items in cart ( @@ -77,18 +75,15 @@ <path d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/> </svg> </a> - </div> {% else %} - <div> <button disabled><span class="fw-bold px-1">Empty Basket</span> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" class="bi bi-bag-x" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M6.146 8.146a.5.5 0 0 1 .708 0L8 9.293l1.146-1.147a.5.5 0 1 1 .708.708L8.707 10l1.147 1.146a.5.5 0 0 1-.708.708L8 10.707l-1.146 1.147a.5.5 0 0 1-.708-.708L7.293 10 6.146 8.854a.5.5 0 0 1 0-.708"/> <path d="M8 1a2.5 2.5 0 0 1 2.5 2.5V4h-5v-.5A2.5 2.5 0 0 1 8 1m3.5 3v-.5a3.5 3.5 0 1 0-7 0V4H1v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V4zM2 5h12v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1z"/> </svg> </button> - </div> {% endif %} </li> </ul> |