aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/templates/payments/cartitem_confirm_delete.html
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-20 20:28:09 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-20 20:28:09 +0100
commite063a30a06caef9e4cda7afb5ef175b1c04b5e96 (patch)
tree2f37118c780144df0b089f82d33f003a7df191be /alphabetlearning/templates/payments/cartitem_confirm_delete.html
parenta5942c7f240686146c243e22d849db97d0a904b9 (diff)
Can now delete item from basket
- if is only one item left, it is deleted along with the basket - if there are more than one, just that one is deleted - TODO needs proper handling of the confirmation page - it's not formatted. htmx?
Diffstat (limited to 'alphabetlearning/templates/payments/cartitem_confirm_delete.html')
-rw-r--r--alphabetlearning/templates/payments/cartitem_confirm_delete.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/alphabetlearning/templates/payments/cartitem_confirm_delete.html b/alphabetlearning/templates/payments/cartitem_confirm_delete.html
new file mode 100644
index 0000000..da3b81e
--- /dev/null
+++ b/alphabetlearning/templates/payments/cartitem_confirm_delete.html
@@ -0,0 +1,7 @@
+<!- TODO improve the handling of this and make it htmx ->
+<form method="post">
+ {% csrf_token %}
+ <p>Are you sure you want to delete "{{ object }}"?</p>
+ {{ form }}
+ <input type="submit" value="Confirm">
+</form>