bd4582645b776a9d9483c9d11c312c6023c2d648
[wolnelektury.git] / src / club / templates / club / 2022 / donation_step1_form.html
1 {% load static %}
2
3 <form method="post" action="{% url 'club_join' %}">
4   {% csrf_token %}
5   {{ form.errors }}
6   <input type="radio" name="switch" id="switch-once" value="single" class="toggle-input" {% if schedule and not schedule.monthly %}checked{% endif %}>
7   <input type="radio" name="switch" id="switch-monthly" value="monthly" class="toggle-input" {% if not schedule or schedule.monthly %}checked{% endif %}>
8   <div class="l-switch__wrapper">
9     {% if user.is_staff %}
10       <span data-edit="club/club/{{ club.pk }}"></span>
11     {% endif %}
12
13     <div class="l-switch white">
14       <label class='toggle-for' for="switch-once">Jednorazowo</label>
15       <label class='toggle-for' for="switch-monthly">Miesięcznie</label>
16       <span class="toggle"></span>
17     </div>
18   </div>
19
20   <div class="l-checkout__payments payments-once">
21     {% for amount in club.singleamount_set.all %}
22       <div class="l-checkout__payments__box once{% if not schedule.monthly and schedule.amount == amount.amount or not schedule and club.default_single_amount == amount.amount %} is-active{% endif %}{% if forloop.last %} l-checkout__payments__box--xl{% endif %}">
23         <div>
24           <h3>{{ amount.amount }} zł</h3>
25           <div class="l-checkout__payments__box__btn-wrp">
26             <button name="single_amount" value="{{ amount.amount }}">Wybierz</button>
27           </div>
28         </div>
29         {% if amount.description %}
30           <div>
31             <p>{{ amount.description|safe }}</p>
32           </div>
33         {% endif %}
34       </div>
35     {% endfor %}
36     <input type="hidden"
37            name="single_amount_selected"
38            value="{% if schedule and not schedule.monthly %}{{ schedule.amount|floatformat }}{% else %}{{ club.default_single_amount }}{% endif %}">
39
40   </div>
41
42
43   <div class="l-checkout__payments payments-recurring">
44     {% for amount in club.monthlyamount_set.all %}
45       <div class="l-checkout__payments__box{% if schedule.monthly and schedule.amount == amount.amount or not schedule and amount.amount == club.default_monthly_amount %} is-active{% endif %}">
46         <h3>{{ amount.amount }} zł <span>/mies.</span></h3>
47         <div class="l-checkout__payments__box__btn-wrp">
48           <p>{{ amount.description|safe }}</p>
49           <button name="monthly_amount" value="{{ amount.amount }}">Wybierz</button>
50         </div>
51       </div>
52     {% endfor %}
53     <input type="hidden"
54            name="monthly_amount_selected"
55            value="{% if schedule and schedule.monthly %}{{ schedule.amount|floatformat }}{% else %}{{ club.default_monthly_amount }}{% endif %}">
56   </div>
57
58   <div class="l-checkout__amount">
59     <div class="l-checkout__input">
60       <label for="kwota">Inna kwota</label>
61       <!-- input type="text" id="kwota" name="custom_amount" value="" -->
62       {{ form.custom_amount }}
63     </div>
64     <button>Dalej</button>
65   </div>
66 </form>
67
68 <img src="{% static '2022/images/checkout-footer.png' %}" alt="Bezpieczne płatności zapewniają" class="l-checkout__footer__img">
69 <div class="l-checkout__cols bt-w">
70   <div class="l-checkout__col full">
71     <div class="l-checkout__form">
72       <div class="l-checkout__form__row full">
73         <h3>Dane do przelewu tradycyjnego:</h3>
74         <div class="l-checkout__info">
75           <div class="l-checkout__info__item">
76             <div>nazwa odbiorcy</div>
77             <h3>Fundacja Nowoczesna Polska</h3>
78             <button title="Kopiuj tekst" class="js-copy">
79               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
80             </button>
81             <input type="text" value="Fundacja Nowoczesna Polska">
82           </div>
83           <div class="l-checkout__info__item">
84             <div>adres odbiorcy</div>
85             <h3>ul. Marszałkowska 84/92 lok. 125, 00-514 Warszawa</h3>
86             <button title="Kopiuj tekst" class="js-copy">
87               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
88             </button>
89             <input type="text" value="ul. Marszałkowska 84/92 lok. 125, 00-514 Warszawa">
90           </div>
91           <div class="l-checkout__info__item">
92             <div>numer konta</div>
93             <h3>75 1090 2851 0000 0001 4324 3317</h3>
94             <button title="Kopiuj tekst" class="js-copy">
95               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
96             </button>
97             <input type="text" value="75 1090 2851 0000 0001 4324 3317">
98           </div>
99           <div class="l-checkout__info__item">
100             <div>tytuł przelewu</div>
101             <h3>Darowizna na Wolne Lektury + twoja nazwa użytkownika lub e-mail</h3>
102             <button title="Kopiuj tekst" class="js-copy">
103               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
104             </button>
105             <input type="text" value="Darowizna na Wolne Lektury + twoja nazwa użytkownika lub e-mail">
106           </div>
107           <div class="l-checkout__info__item">
108             <div>wpłaty w EUR</div>
109             <h3>PL88 1090 2851 0000 0001 4324 3374</h3>
110             <button title="Kopiuj tekst" class="js-copy">
111               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
112             </button>
113             <input type="text" value="PL88 1090 2851 0000 0001 4324 3374">
114           </div>
115           <div class="l-checkout__info__item">
116             <div>Wpłaty w USD</div>
117             <h3>PL82 1090 2851 0000 0001 4324 3385</h3>
118             <button title="Kopiuj tekst" class="js-copy">
119               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
120             </button>
121             <input type="text" value="PL88 1090 2851 0000 0001 4324 3374">
122           </div>
123           <div class="l-checkout__info__item">
124             <div>SWIFT</div>
125             <h3>WBKPPLPP</h3>
126             <button title="Kopiuj tekst" class="js-copy">
127               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
128             </button>
129             <input type="text" value="WBKPPLPP">
130           </div>
131         </div>
132       </div>
133     </div>
134   </div>
135 </div>