2891b98c973a2417d5d02f029b9c82b1face7103
[wolnelektury.git] / src / club / templates / club / payment_form.html
1 {% load i18n %}
2
3 <ul class="errorlist">
4   {% for e in  form.non_field_errors %}
5     <li>{{ e }}</li>
6   {% endfor %}
7   {% for e in  form.plan.errors %}
8     <li>{{ e }}</li>
9   {% endfor %}
10   {% for e in  form.amount.errors %}
11     <li>{{ e }}</li>
12   {% endfor %}
13 </ul>
14
15 <h3>1. {% trans "Choose your type of support" %}</h3>
16
17 {{ form.amount }}
18 {{ form.monthly }}
19 <div class="plan-select">
20   <span class="button plan-toggle" data-plan="plan-single" data-monthly="False">{% trans "one-time" %}</span>
21   <span class="button plan-toggle active" data-plan="plan-monthly" data-monthly="True">{% trans "monthly" %}</span>
22 </div>
23
24 <h3>2. {% trans "Choose the amount" %}</h3>
25
26 <div class="plan" id="plan-single" style="display:none;" data-monthly="False" data-min-for-year="{{ club.min_for_year }}" data-amount="{{ club.default_single_amount }}">
27   {% for amount in club.proposed_single_amounts %}
28     <span class="button kwota{% if amount == club.default_single_amount %} active{% endif %}{% if amount >= club.min_for_year %} yearly{% endif %}">{{ amount }}</span>
29   {% endfor %}
30
31   <span class="inna">
32     <span class="button">{% trans "different amount" %}</span>
33     <input type="number" min="{{ club.min_amount }}">
34   </span>
35   <div class="methods">{% include 'club/payment/payu.html' %}</div>
36 </div>
37
38
39 <div class="plan" id="plan-monthly" data-monthly="True" data-amount="{{ club.default_monthly_amount }}">
40   {% for amount in club.proposed_monthly_amounts %}
41     <span class="button kwota{% if amount == club.default_monthly_amount %} active{% endif %}">{{ amount }}</span>
42   {% endfor %}
43
44   <span class="inna">
45     <span class="button">{% trans "different amount" %}</span>
46     <input type="number" min="{{ club.min_amount }}">
47   </span>
48   <div class="methods">{% include 'club/payment/payu-re.html' %}</div>
49 </div>
50
51 <h3>3. {% trans "Provide an e-mail address" %}</h3>
52
53 <p>{{ form.email }}</p>
54
55 <p>
56   {{ form.agree_newsletter }}
57   <label for="id_agree_newsletter">
58     {% trans "I'd like to receive informations about new publications." %}
59   </label>
60 </p>
61
62 <p class="helptext">{% trans 'You can unsubscribe at any point. More in the <a target="_blank" href="https://nowoczesnapolska.org.pl/prywatnosc/">privacy policy</a>.' %}</p>
63 <p class="helptext">{{ form.data_processing }}</p>
64
65 <div><button class="submit" type='submit'>{% trans "Donate" %}</button></div>