From 51fdda3b581160e22936ff16bee05ac63dafd351 Mon Sep 17 00:00:00 2001 From: emile Date: Thu, 18 Jul 2024 10:40:26 +0300 Subject: [PATCH] new --- .../details_templates/customer-details.html | 288 +++++++++--------- 1 file changed, 146 insertions(+), 142 deletions(-) diff --git a/osinaweb/osinacore/templates/details_templates/customer-details.html b/osinaweb/osinacore/templates/details_templates/customer-details.html index f51b3e9a..9b05fe95 100644 --- a/osinaweb/osinacore/templates/details_templates/customer-details.html +++ b/osinaweb/osinacore/templates/details_templates/customer-details.html @@ -292,161 +292,165 @@ - -
-
-
-

Subscriptions

-
+ + {% if customer_active_subscriptions %} +
+
+
+

Subscriptions

+
-
+
-
- {% for subscription in customer_active_subscriptions %} -
+
+ {% for subscription in customer_active_subscriptions %}
- {% if subscription.item.item_type.name == 'OSIMENU' %} - - {% elif subscription.item.item_type.name == 'OSICARD' %} - - {% endif %} + class="flex flex-col justify-center items-center shadow-md rounded-md cursor-pointer hover:scale-105 transition-transform duration-300 relative"> +
+ {% if subscription.item.item_type.name == 'OSIMENU' %} + + {% elif subscription.item.item_type.name == 'OSICARD' %} + + {% endif %} +
+
+

Expires:{% if subscription.end_at %} {{subscription.end_at}} {% else %} No + Expiry {% endif %} +

+
-
-

Expires:{% if subscription.end_at %} {{subscription.end_at}} {% else %} No - Expiry {% endif %} {{subscription.id}} -

-
-
- {% endfor %} + {% endfor %} +
-
+ {% endif %} -
-
-
-

Payments

+ {% if customer_payments %} +
+
+
+

Payments

+
+ +
- - -
- -
- - - - - - - - - - - - - - - - {% for payment in customer_payments %} - - - - - - - - - - - + + {% endfor %} +
- Order - - Amount - - Date Due - - Date Paid - - Payment Method - - Comment - - Actions -
-

{{payment.order.order_id}}

-
-

${{payment.amount}}

-
-

{{payment.date_due}}

-
- {% if payment.date_paid %} -

{{payment.date_paid}}

- {% else %} -

UNPAID

- {% endif %} -
- {% for type in payment.type.all %} -
- -

{{type.name}}

+ +
+ + + + + + + + + + + + + + + + {% for payment in customer_payments %} + + + + + + + + + + + + + - - + + - - - - {% endfor %} -
+ Order + + Amount + + Date Due + + Date Paid + + Payment Method + + Comment + + Actions +
+

{{payment.order.order_id}}

+
+

${{payment.amount}}

+
+

{{payment.date_due}}

+
+ {% if payment.date_paid %} +

{{payment.date_paid}}

+ {% else %} +

UNPAID

+ {% endif %} +
+ {% for type in payment.type.all %} +
+ +

{{type.name}}

+
+ {% endfor %} +
+
+
+ + + +
- {% endfor %} -
-
-
- - - + +
+
+
+ + + +
+ +
+ + + +
- - -
-
-
- - - -
- -
- - - -
-
-
+
+
-
+ {% endif %}