Club renewal procedure fixes.
[wolnelektury.git] / src / club / templates / club / schedule.html
1 {% extends "base/base.html" %}
2 {% load i18n %}
3
4
5 {% block titleextra %}{% trans "Wolne Lektury need your help!" %}{% endblock %}
6
7
8 {% block body %}
9 <div class="white-box normal-text">
10
11   <h1>
12     Cieszymy się, że jesteś z nami! Dziękujemy za wsparcie!
13   </h1>
14   <p>
15
16
17     {% if schedule.payed_at %}
18       Kwota:
19       {{ schedule.amount }} zł
20
21       <br>
22
23       Pierwsza wpłata:
24       {{ schedule.payed_at.date }}
25
26       <br>
27
28       {% if schedule.is_expired %}
29         <strong style="color: red">
30           Status darczyńcy nieaktywny od
31           {{ schedule.expires_at.date }}
32         </strong>
33       {% else %}
34         <strong style="color: green">
35           Status darczyńcy aktywny
36           {% if schedule.get_payment_method.expiration_reliable %}
37             do
38             {{ schedule.expires_at.date }}
39           {% endif %}
40         </strong>
41       {% endif %}
42
43       <br>
44
45   {% endif %}
46
47
48
49 {% if schedule.is_active %}
50   {% if schedule.is_recurring %}
51      {% if schedule.is_cancelled %}
52          <p><strong>Płatność anulowana.</strong></p>
53          <p>
54            <a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em" href="/pomagam/">Wpłać ponownie</a>
55          </p>
56      {% else %}
57          {% if schedule.get_payment_method.updateable %}
58            <form method='post' action='' class="wlform">
59              {% csrf_token %}
60              <button type="submit" class="submit">
61                Zaktualizuj dane płatności
62              </button>
63            </form>
64            <br>
65          {% endif %}
66
67          {% if schedule.get_payment_method.cancellable %}
68            <form class="wlform" method='post' action="{% url 'club_cancel' schedule.key %}">
69              {% csrf_token %}
70              <button type="submit" class="submit" style="font-size: .9em">Zrezygnuj z kolejnych płatności</button>
71            </form>
72          {% endif %}
73      {% endif %}
74   {% else %}
75      <form class="wlform" method='post' action=''>
76         {% csrf_token %}
77         <button type="submit" class="submit">Dorzuć się ponownie</button>
78      </form>
79   {% endif %}
80
81
82 {% else %}
83   {% if schedule.is_expired %}
84
85     <form method='post' action='' class="wlform">
86       {% csrf_token %}
87       <button type="submit" class="submit">
88         {% if schedule.is_recurring %}
89           Zaktualizuj dane płatności
90         {% else %}
91           Dorzuć się ponownie
92         {% endif %}
93       </button>
94     </form>
95
96
97  {% else %}
98   {% if not schedule.payed_at %}
99    <p>Płatność nie została jeszcze wykonana.</p>
100    {% if schedule.payuorder_set.exists %}
101      Czekamy na potwierdzenie płatności.
102    {% else %}
103
104      <form method='post' action='' class="wlform">
105         {% csrf_token %}
106        <button type="submit" class="submit">Dokończ płatność</button>
107      </form>
108
109    {% endif %}
110   {% endif %}
111  {% endif %}
112 {% endif %}
113
114
115 {% if not schedule.membership %}
116
117   <hr style="margin: 2em 0;">
118
119   <h2>Powiązanie z kontem użytkownika</h2>
120
121
122 <p>
123 Twoje wsparcie upoważnia Cię do przedpremierowego dostępu do publikacji.
124 Aby z niego korzystać, powiąż darowiznę ze swoim kontem użytkownika na Wolnych Lekturach.
125 </p>
126
127
128 <p style="margin-top:2em;">
129   <a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em;" href="{% url 'club_claim' schedule.key %}">
130     {% if request.user.is_authenticated %}
131       Powiąż darowiznę z kontem <strong>{{ request.user.username }}</strong>
132     {% else %}
133       Zaloguj się i powiąż darowiznę z kontem
134     {% endif %}
135   </a>
136 </p>
137 {% endif %}
138
139
140
141
142
143 <a href="">
144
145 </div>
146
147 {% endblock %}