X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e7451b87d12c06755d6dc278e72b6650f8de8b4a..ce097db0af8c96297501b569ec49477b76c1ceec:/src/club/templates/payu/rec_payment.html?ds=inline diff --git a/src/club/templates/payu/rec_payment.html b/src/club/templates/payu/rec_payment.html index 71dcdca37..cda74b6b5 100644 --- a/src/club/templates/payu/rec_payment.html +++ b/src/club/templates/payu/rec_payment.html @@ -1,47 +1,58 @@ -{% extends request.session.from_app|yesno:"base/app.html,base/base.html" %} +{% extends "base_simple.html" %} {% load i18n %} -{% block titleextra %}{% trans "Towarzystwo PrzyjacióŠWolnych Lektur" %}{% endblock %} +{% block titleextra %}{% trans "Wolne Lektury potrzebujÄ Twojej pomocy!" %}{% endblock %} {% block body %} <div class="white-box normal-text"> - {# On the card payment page. #} - <h1>{% trans "Supporting Wolne Lektury" %}</h1> - - <p> - {% blocktrans with amount=schedule.amount %} - You are setting up a monthly payment in the amount of {{ amount }} PLN. Thank you! - {% endblocktrans %} + <h1>{% trans "Wspierasz Wolne Lektury" %}</h1> + + {% if schedule.payed_at %} + <p> + {% blocktrans trimmed %} + Aktualizujesz dane swojej comiesiÄcznej darowizny w kwocie {{ amount }} PLN. DziÄkujemy! + {% endblocktrans %} + </p><p> + {% blocktrans trimmed with url=schedule.get_absolute_url %} + JeÅli chcesz zrezygnowaÄ z dalszego wsparcia Wolnych Lektur, + możesz to zrobiÄ na <a href="{{ url }}">stronie swojej darowizny</a>. + {% endblocktrans %} + </p> + {% else %} + <p> + {% blocktrans trimmed with amount=schedule.amount %} + Zlecasz comiesiÄcznÄ pÅatnoÅÄ w wysokoÅci {{ amount }} zÅ. DziÄkujemy! + {% endblocktrans %} + {% endif %} </p> - <form id="theform" method='POST'> - {% csrf_token %} - {{ form }} - </form> - - - -<script> - function paymentcallback(data) { - $("#theform #id_token").val(data.value); - $("#theform").submit() - } -</script> - -<div id="payu-widget"></div> -<script - src="{{ pos.get_api_host }}/front/widget/js/payu-bootstrap.js" - - {% for k, v in widget_args.items %} - {{ k }}="{{ v }}" - {% endfor %} - - success-callback="paymentcallback" - sig="{{ widget_sig }}"> -</script> + <p></p> + <form id="theform" method='POST'> + {% csrf_token %} + {{ form }} + </form> + + <script> + function paymentcallback(data) { + $("#theform #id_token").val(data.value); + $("#theform").submit() + } + </script> + + <div id="payu-widget"></div> + <script + src="{{ pos.get_api_host }}/front/widget/js/payu-bootstrap.js" + + {% for k, v in widget_args.items %} + {{ k }}="{{ v }}" + {% endfor %} + + success-callback="paymentcallback" + sig="{{ widget_sig }}"> + </script> </div>