From: Radek Czajka Date: Fri, 13 May 2022 12:36:34 +0000 (+0200) Subject: Easier schedule cancelling. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/04a31273da152e97a36656e8422eea572f01c132 Easier schedule cancelling. --- 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 %}