- {% if schedule.get_payment_method.is_recurring %}
- <form method='post' action="{% url 'club_cancel' schedule.key %}">
- {% csrf_token %}
- <button type="submit">Anuluj kolejną płatność</button>
- </form>
+
+
+{% if schedule.is_active %}
+ {% if schedule.is_recurring %}
+ {% if schedule.is_cancelled %}
+ <p><strong>Płatność anulowana.</strong></p>
+ <p>
+ <a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em" href="/pomagam/">Wpłać ponownie</a>
+ </p>
+ {% else %}
+ {% if schedule.get_payment_method.updateable %}
+ <form method='post' action='' class="wlform">
+ {% csrf_token %}
+ <button type="submit" class="submit">
+ Zaktualizuj dane płatności
+ </button>
+ </form>
+ <br>
+ {% endif %}
+
+ {% if schedule.get_payment_method.cancellable %}
+ <form class="wlform" method='post' action="{% url 'club_cancel' schedule.key %}">
+ {% csrf_token %}
+ <button type="submit" class="submit" style="font-size: .9em">Zrezygnuj z kolejnych płatności</button>
+ </form>
+ {% endif %}
+ {% endif %}