aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/templates/payments
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
commiteeaddb27560d723ca7d61359744ceb2709fccd2d (patch)
tree04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /pyblackbird_cc/templates/payments
parent7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff)
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to 'pyblackbird_cc/templates/payments')
-rw-r--r--pyblackbird_cc/templates/payments/cancel.html10
-rw-r--r--pyblackbird_cc/templates/payments/cart_detail.html32
-rw-r--r--pyblackbird_cc/templates/payments/cart_lineitem.html17
-rw-r--r--pyblackbird_cc/templates/payments/cart_sidepanel.html28
-rw-r--r--pyblackbird_cc/templates/payments/landingpage.html29
-rw-r--r--pyblackbird_cc/templates/payments/success.html11
6 files changed, 0 insertions, 127 deletions
diff --git a/pyblackbird_cc/templates/payments/cancel.html b/pyblackbird_cc/templates/payments/cancel.html
deleted file mode 100644
index efe0fd3..0000000
--- a/pyblackbird_cc/templates/payments/cancel.html
+++ /dev/null
@@ -1,10 +0,0 @@
-{% extends "base.html" %}
-
-{% block content %}
- <div class="container my-5">
- <div class="row">
- <h2>Transaction Cancelled</h2>
- <p>Your transaction was cancelled.</p>
- </div>
- </div>
-{% endblock content %} \ No newline at end of file
diff --git a/pyblackbird_cc/templates/payments/cart_detail.html b/pyblackbird_cc/templates/payments/cart_detail.html
deleted file mode 100644
index 8c6c01b..0000000
--- a/pyblackbird_cc/templates/payments/cart_detail.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% extends "base.html" %}
-{% load static %}
-
-{% block content %}
-<div class="container my-5">
- <h1 class="mb-4">My basket</h1>
- <p class="text-body-secondary">{% lorem %}</p>
- {% if cart %}
- <div class="row">
- <div class="col-8 my-5 bg-secondary-subtle border border-1 rounded border-dark">
- <div class="my-4 bg-white rounded">
-
- <div>
- {% for item in cart.items.all %}
- <div class="my-3">
- {% include "payments/cart_lineitem.html" with item=item %}
- </div>
- {% endfor %}
- </div>
- </div>
- </div>
-
- <div class="col-4 my-5">
- {% include "payments/cart_sidepanel.html" with cart=cart %}
- </div>
-
- </div>
- {% else %}
- <p>Your cart is empty.</p>
- {% endif %}
-</div>
-{% endblock %}
diff --git a/pyblackbird_cc/templates/payments/cart_lineitem.html b/pyblackbird_cc/templates/payments/cart_lineitem.html
deleted file mode 100644
index 0ef8a97..0000000
--- a/pyblackbird_cc/templates/payments/cart_lineitem.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<div class="container my-2">
- <div class="col">
- <div class="p-2 border border-1 border-success">
- {{ item.resource.name }}
- </div>
- <div class="p-2 border border-1 border-success">
- {{ item.resource.card_description }}
- </div>
- <div class="d-flex flex-row border border-2 border-danger p-1">
- {% for tn_url in item.resource.thumbnail_urls %}
- <div class="flex-shrink border border-2 border-alert p-1">
- <img class="img-fluid rounded" src="{{ tn_url }}" alt="unknown"/>
- </div>
- {% endfor %}
- </div>
- </div>
-</div>
diff --git a/pyblackbird_cc/templates/payments/cart_sidepanel.html b/pyblackbird_cc/templates/payments/cart_sidepanel.html
deleted file mode 100644
index 7742c9a..0000000
--- a/pyblackbird_cc/templates/payments/cart_sidepanel.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<div class="p-2 border border-2 rounded rounded-2 border-light-subtle">
- <div class="p-1 d-flex justify-content-between">
- <div>
- <strong>Subtotal:</strong>
- </div>
- <div>
- &#163;{{ cart_total }} 10.24
- </div>
- </div>
- <div class="p-1 d-flex justify-content-between">
- <div>
- <strong>Shipping and handling:</strong>
- </div>
- <div>
- <p class="text-end">There is nothing to say here</p>
- </div>
- </div>
- <hr>
- <div class="my-1">
- <p class="p-1 text-secondary">After payment, links to your download will be generated.
- <a class="p-1 text-sm" href="#">Help</a>
- </p>
-
- </div>
- <div class="d-grid gap-2 mx-auto col-11">
- <button class="btn btn-primary btn-lg">Checkout now</button>
- </div>
-</div>
diff --git a/pyblackbird_cc/templates/payments/landingpage.html b/pyblackbird_cc/templates/payments/landingpage.html
deleted file mode 100644
index 9897301..0000000
--- a/pyblackbird_cc/templates/payments/landingpage.html
+++ /dev/null
@@ -1,29 +0,0 @@
-{% extends "base.html" %}
-{% block content %}
- <div class="container my-5">
- <div class="row">
- <h2>Welcome to PyBlackbird - Buy this</h2>
-
- <section>
- <div class="product">
- <div class="description">
- <h3>{{ product.name }}</h3>
- <hr/>
- {% for price in prices %}
-
- <div>
- <h5>${{ price.get_display_price }}</h5>
- <form action="{% url 'payments:create-checkout-session' price.id %}" method="POST">
- {% csrf_token %}
- <button type="submit" class="btn btn-primary">Checkout</button>
- </form>
- </div>
-
- {% endfor %}
- </div>
- </div>
- </section>
-
-
- </div>
-{% endblock content %} \ No newline at end of file
diff --git a/pyblackbird_cc/templates/payments/success.html b/pyblackbird_cc/templates/payments/success.html
deleted file mode 100644
index c1fb089..0000000
--- a/pyblackbird_cc/templates/payments/success.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{% extends "base.html" %}
-
-{% load static %}
-
-{% block content %}
- <div class="container my-5">
- <div class="row">
- <h2>Thanks for your order!</h2>
- <p>You have successfully transacted.</p>
- </div>
-{% endblock content %} \ No newline at end of file