From 04a31273da152e97a36656e8422eea572f01c132 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 13 May 2022 14:36:34 +0200 Subject: [PATCH] Easier schedule cancelling. --- src/club/templates/club/schedule.html | 8 ++++++++ src/club/templates/payu/rec_payment.html | 11 ++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/club/templates/club/schedule.html b/src/club/templates/club/schedule.html index 9505cdda5..422d32324 100644 --- a/src/club/templates/club/schedule.html +++ b/src/club/templates/club/schedule.html @@ -93,6 +93,14 @@ + {% if schedule.get_payment_method.cancellable %} +
+
+ {% csrf_token %} + +
+ {% endif %} + {% else %} {% if not schedule.payed_at %} diff --git a/src/club/templates/payu/rec_payment.html b/src/club/templates/payu/rec_payment.html index 4c840a699..3f8fa58df 100644 --- a/src/club/templates/payu/rec_payment.html +++ b/src/club/templates/payu/rec_payment.html @@ -12,9 +12,14 @@

{% trans "Supporting Wolne Lektury" %}

- {% blocktrans with amount=schedule.amount %} - You are setting up a monthly payment in the amount of {{ amount }} PLN. Thank you! - {% endblocktrans %} + {% if schedule.payed_at %} + Aktualizujesz dane swojej comiesięcznej darowizny w kwocie {{ amount }} PLN. Dziękujemy!

+ Jeśli chcesz zrezygnować z dalszego wsparcia Wolnych Lektur, możesz to zrobić na stronie swojej darowizny. + {% else %} + {% blocktrans with amount=schedule.amount %} + You are setting up a monthly payment in the amount of {{ amount }} PLN. Thank you! + {% endblocktrans %} + {% endif %}

-- 2.20.1