From 5cee9f21ade025d63e60b745fa196cec7c7f5d2a Mon Sep 17 00:00:00 2001 From: rizwanisready Date: Mon, 12 Aug 2024 15:08:55 +0530 Subject: [PATCH] my subscriptions page 6 --- .../stripe_html/active_subscription.html | 69 ++++++++++++++----- 1 file changed, 51 insertions(+), 18 deletions(-) diff --git a/templates/stripe_html/active_subscription.html b/templates/stripe_html/active_subscription.html index f489d9f..5896ccf 100644 --- a/templates/stripe_html/active_subscription.html +++ b/templates/stripe_html/active_subscription.html @@ -76,6 +76,31 @@ text-align: center; } } + + .bg-dark { + background-color: #000 !important; + } + .text-light { + color: #f8f9fa !important; + } + .text-gold { + color: #d4af37 !important; + } + .border-gold { + border: 2px solid #d4af37 !important; + } + .border-bottom-gold { + border-bottom: 2px solid #d4af37 !important; + } + .btn-outline-gold { + color: #d4af37; + border-color: #d4af37; + } + .btn-outline-gold:hover { + background-color: #d4af37; + color: #000; + } + @@ -86,39 +111,47 @@
-
-
-

{{ active_subscription.subscription.name }}

+
+
+

{{ active_subscription.subscription.title }}

-

Status: {{ active_subscription.status }}

+
Principal:
+

{{ active_subscription.principal.first_name }} {{ active_subscription.principal.last_name }}

+

Status: {{ active_subscription.get_status_display }}

Start Date: {{ active_subscription.start_date }}

End Date: {{ active_subscription.end_date }}

-

Auto Renew: {{ active_subscription.auto_renew }}

- +

Auto Renew: {{ active_subscription.auto_renew|yesno:"Yes,No" }}

+ + {% if active_subscription.coupon_code %} +

Coupon Code: {{ active_subscription.coupon_code }}

+ {% endif %} + {% if active_subscription.cancelled %} -
-

Cancellation Details

+
+

Cancellation Details

Cancelled: Yes

Cancellation Date: {{ active_subscription.cancelled_date_time }}

Grace Period Ends: {{ active_subscription.grace_period_end_date }}

{% endif %} - + {% if active_subscription.auto_renew and not active_subscription.cancelled %} -
-

Cancel Subscription

-
- {% csrf_token %} - - -
-
+
+

Cancel Subscription

+
+ {% csrf_token %} + + +
+
{% endif %} -
+ + +