X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/97c8c6d7c7961976172bece182832d01c9c0fc4b..b6d44713f806e7186589da45d7622123a9c36a60:/src/club/templates/payu/rec_payment.html diff --git a/src/club/templates/payu/rec_payment.html b/src/club/templates/payu/rec_payment.html index 254c2bc46..cda74b6b5 100644 --- a/src/club/templates/payu/rec_payment.html +++ b/src/club/templates/payu/rec_payment.html @@ -1,41 +1,58 @@ -{% extends request.session.from_app|yesno:"base/app.html,base/base.html" %} +{% extends "base_simple.html" %} +{% load i18n %} -{% block titleextra %}Towarzystwo Wolnych Lektur{% endblock %} +{% block titleextra %}{% trans "Wolne Lektury potrzebujÄ Twojej pomocy!" %}{% endblock %} {% block body %} -<div class="white-box normal-text"> - - <h1>Wspierasz Wolne Lektury</h1> - - <p>Zlecasz comiesiÄcznÄ pÅatnoÅÄ w wysokoÅci {{ schedule.amount}} zÅ. DziÄkujemy!</p> - - <form id="theform" method='POST'> - {% csrf_token %} - {{ form }} - </form> - - - -<script> - function yeahwellwhatever(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="yeahwellwhatever" - sig="{{ widget_sig }}"> -</script> + <div class="white-box normal-text"> + + <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> + + <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>