Checkout style
[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   {% with amounts=club.get_amounts %}
21   <div class="l-checkout__payments payments-once">
22     {% for amount in amounts.single %}
23       <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 amount.wide %} l-checkout__payments__box--special{% endif %} l-checkout__payments__box--{{ amount.box_variant }}">
24
25         <h3>{{ amount.amount }} zł</h3>
26         <div class="l-checkout__payments__box__btn-wrp">
27           {% if amount.description %}
28             <p>{{ amount.description|safe }}</p>
29           {% endif %}
30           <button name="single_amount" value="{{ amount.amount }}">Wybierz</button>
31         </div>
32       </div>
33     {% endfor %}
34     <input type="hidden"
35            name="single_amount_selected"
36            value="{% if schedule and not schedule.monthly %}{{ schedule.amount|floatformat }}{% else %}{{ club.default_single_amount }}{% endif %}">
37
38   </div>
39
40
41   <div class="l-checkout__payments payments-recurring">
42     {% for amount in amounts.monthly %}
43       <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 %}{% if amount.wide %} l-checkout__payments__box--special{% endif %} l-checkout__payments__box--{{ amount.box_variant }}">
44         <h3>{{ amount.amount }} zł <span>/mies.</span></h3>
45         <div class="l-checkout__payments__box__btn-wrp">
46           {% if amount.description %}
47             <p>{{ amount.description|safe }}</p>
48           {% endif %}
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   {% endwith %}
67 </form>
68
69 <div class="l-checkout__secure">
70 <img src="{% static '2022/images/payments-padlock.png' %}" class="l-checkout__secure__padlock">
71 Bezpieczne płatności zapewniają:
72 <img src="{% static '2022/images/payments-2.png' %}" class="l-checkout__secure__img">
73 </div>
74
75 <div class="l-checkout__cols bt-w">
76   <div class="l-checkout__col full">
77     <div class="l-checkout__form">
78       <div class="l-checkout__form__row full">
79         <h3>Dane do przelewu tradycyjnego:</h3>
80         <div class="l-checkout__info">
81           <div class="l-checkout__info__item">
82             <div>nazwa odbiorcy</div>
83             <h3>Fundacja Nowoczesna Polska</h3>
84             <button title="Kopiuj tekst" class="js-copy">
85               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
86             </button>
87             <input type="text" value="Fundacja Nowoczesna Polska">
88           </div>
89           <div class="l-checkout__info__item">
90             <div>adres odbiorcy</div>
91             <h3>ul. Marszałkowska 84/92 lok. 125, 00-514 Warszawa</h3>
92             <button title="Kopiuj tekst" class="js-copy">
93               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
94             </button>
95             <input type="text" value="ul. Marszałkowska 84/92 lok. 125, 00-514 Warszawa">
96           </div>
97           <div class="l-checkout__info__item">
98             <div>numer konta</div>
99             <h3>75 1090 2851 0000 0001 4324 3317</h3>
100             <button title="Kopiuj tekst" class="js-copy">
101               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
102             </button>
103             <input type="text" value="75 1090 2851 0000 0001 4324 3317">
104           </div>
105           <div class="l-checkout__info__item">
106             <div>tytuł przelewu</div>
107             <h3>Darowizna na Wolne Lektury + twoja nazwa użytkownika lub e-mail</h3>
108             <button title="Kopiuj tekst" class="js-copy">
109               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
110             </button>
111             <input type="text" value="Darowizna na Wolne Lektury + twoja nazwa użytkownika lub e-mail">
112           </div>
113           <div class="l-checkout__info__item">
114             <div>wpłaty w EUR</div>
115             <h3>PL88 1090 2851 0000 0001 4324 3374</h3>
116             <button title="Kopiuj tekst" class="js-copy">
117               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
118             </button>
119             <input type="text" value="PL88 1090 2851 0000 0001 4324 3374">
120           </div>
121           <div class="l-checkout__info__item">
122             <div>Wpłaty w USD</div>
123             <h3>PL82 1090 2851 0000 0001 4324 3385</h3>
124             <button title="Kopiuj tekst" class="js-copy">
125               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
126             </button>
127             <input type="text" value="PL88 1090 2851 0000 0001 4324 3374">
128           </div>
129           <div class="l-checkout__info__item">
130             <div>SWIFT</div>
131             <h3>WBKPPLPP</h3>
132             <button title="Kopiuj tekst" class="js-copy">
133               <img src="{% static '2022/images/copy.svg' %}" alt="Kopiuj">
134             </button>
135             <input type="text" value="WBKPPLPP">
136           </div>
137         </div>
138       </div>
139     </div>
140   </div>
141 </div>