fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New payment retry policy.
[wolnelektury.git]
/
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
254c2bc
..
4c840a6
100644
(file)
--- a/
src/club/templates/payu/rec_payment.html
+++ b/
src/club/templates/payu/rec_payment.html
@@
-1,41
+1,47
@@
{% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
{% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
+{% load i18n %}
-{% block titleextra %}
Towarzystwo Wolnych Lektur
{% endblock %}
+{% block titleextra %}
{% trans "Wolne Lektury need your help!" %}
{% endblock %}
{% block body %}
{% block body %}
-<div class="white-box normal-text">
+
<div class="white-box normal-text">
- <h1>Wspierasz Wolne Lektury</h1>
+ {# On the card payment page. #}
+ <h1>{% trans "Supporting Wolne Lektury" %}</h1>
- <p>Zlecasz comiesięczną płatność w wysokości {{ schedule.amount}} zł. Dziękujemy!</p>
+ <p>
+ {% blocktrans with amount=schedule.amount %}
+ You are setting up a monthly payment in the amount of {{ amount }} PLN. Thank you!
+ {% endblocktrans %}
+ </p>
-
<form id="theform" method='POST'>
-
{% csrf_token %}
-
{{ form }}
-
</form>
+ <form id="theform" method='POST'>
+ {% csrf_token %}
+ {{ form }}
+ </form>
-<script>
-
function yeahwellwhatever
(data) {
-
$("#theform #id_token").val(data.value);
-
$("#theform").submit()
-
}
-</script>
+
<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"
+
<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 %}
+
{% for k, v in widget_args.items %}
+
{{ k }}="{{ v }}"
+
{% endfor %}
-
success-callback="yeahwellwhatever
"
- sig="{{ widget_sig }}">
-</script>
+
success-callback="paymentcallback
"
+
sig="{{ widget_sig }}">
+
</script>
</div>
</div>