Cleanup
[wolnelektury.git] / src / club / templates / payu / rec_payment.html
index 4c840a6..e5d391f 100644 (file)
@@ -1,4 +1,4 @@
-{% extends request.session.from_app|yesno:"base/app.html,base/base.html" %}
+{% extends "base_simple.html" %}
 {% load i18n %}
 
 
     <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 %}
+      {% if schedule.payed_at %}
+        Aktualizujesz dane swojej comiesięcznej darowizny w kwocie {{ amount }} PLN. Dziękujemy!</p><p>
+        Jeśli chcesz zrezygnować z dalszego wsparcia Wolnych Lektur, możesz to zrobić na <a href="{{ schedule.get_absolute_url }}">stronie swojej darowizny</a>.
+      {% else %}
+        {% blocktrans with amount=schedule.amount %}
+          You are setting up a monthly payment in the amount of {{ amount }} PLN. Thank you!
+        {% endblocktrans %}
+      {% endif %}
     </p>
 
+    <p></p>
     <form id="theform" method='POST'>
       {% csrf_token %}
       {{ form }}
     </form>
 
-
-
     <script>
      function paymentcallback(data) {
          $("#theform #id_token").val(data.value);