Locatizations.
[wolnelektury.git] / src / club / templates / club / schedule.html
1 {% extends "base_simple.html" %}
2 {% load i18n %}
3
4
5 {% block titleextra %}{% trans "Wolne Lektury potrzebują Twojej pomocy!" %}{% endblock %}
6
7
8 {% block body %}
9
10   <h1>
11     {% trans "Cieszymy się, że jesteś z nami! Dziękujemy za wsparcie!" %}
12   </h1>
13   <div class="white-box normal-text">
14     <p>
15
16
17     {% if schedule.payed_at %}
18       {% trans "Kwota" %}:
19       {{ schedule.amount }} zł
20
21       <br>
22
23       {% trans "Pierwsza wpłata" %}:
24       {{ schedule.payed_at.date }}
25
26       <br>
27
28       {% if schedule.is_expired %}
29         <strong style="color: red">
30           {% trans "Status darczyńcy nieaktywny od" %}
31           {{ schedule.expires_at.date }}
32         </strong>
33       {% else %}
34         <strong style="color: green">
35           {% trans "Status darczyńcy aktywny" %}
36           {% if schedule.get_payment_method.expiration_reliable %}
37             {% trans "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>{% trans "Płatność anulowana." %}</strong></p>
53          <p>
54            <a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em" href="/pomagam/">{% trans "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                {% trans "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">{% trans "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">{% trans "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           {% trans "Zaktualizuj dane płatności" %}
90         {% else %}
91           {% trans "Dorzuć się ponownie" %}
92         {% endif %}
93       </button>
94     </form>
95
96     {% if schedule.get_payment_method.cancellable %}
97       <br>
98       <form class="wlform" method='post' action="{% url 'club_cancel' schedule.key %}">
99         {% csrf_token %}
100         <button type="submit" class="submit" style="font-size: .9em">{% trans "Zrezygnuj z kolejnych płatności" %}</button>
101       </form>
102     {% endif %}
103
104
105  {% else %}
106   {% if not schedule.payed_at %}
107    <p>{% trans "Płatność nie została jeszcze wykonana." %}</p>
108    {% if schedule.payuorder_set.exists %}
109      {% trans "Czekamy na potwierdzenie płatności." %}
110    {% else %}
111
112      <form method='post' action='' class="wlform">
113         {% csrf_token %}
114        <button type="submit" class="submit">{% trans "Dokończ płatność" %}</button>
115      </form>
116
117    {% endif %}
118   {% endif %}
119  {% endif %}
120 {% endif %}
121
122
123 {% if not schedule.membership %}
124
125   <hr style="margin: 2em 0;">
126
127   <h2>{% trans "Powiązanie z kontem użytkownika" %}</h2>
128
129
130   <p>
131     {% blocktrans trimmed %}
132       Twoje wsparcie upoważnia Cię do przedpremierowego dostępu do publikacji.
133       Aby z niego korzystać, powiąż darowiznę ze swoim kontem użytkownika na Wolnych Lekturach.
134     {% endblocktrans %}
135   </p>
136
137
138 <p style="margin-top:2em;">
139   <a style="background:#018189;color:white;border-radius: 10px;padding:1em 2em;" href="{% url 'club_claim' schedule.key %}">
140     {% if request.user.is_authenticated %}
141       {% blocktrans trimmed with user=request.user.username %}
142         Powiąż darowiznę z kontem <strong>{{ user }}</strong>
143       {% endblocktrans %}
144     {% else %}
145       {% trans "Zaloguj się i powiąż darowiznę z kontem" %}
146     {% endif %}
147   </a>
148 </p>
149 {% endif %}
150
151
152 </div>
153
154 {% endblock %}