920f844403256035cd00157298d47dfb233ce6f5
[wolnelektury.git] / src / funding / templates / funding / 2022 / offer_detail.html
1 {% extends '2022/base.html' %}
2 {% load i18n %}
3 {% load chunks %}
4 {% load thumbnail %}
5 {% load fundings from funding_tags %}
6
7
8 {% block settings %}
9   {% load title %}
10   {% title object %}
11 {% endblock %}
12
13
14 {% block breadcrumbs %}
15   <a href="{% url 'funding' %}"><span>Zbiórki</span></a>
16   <span>{{ object }}</span>
17 {% endblock %}
18
19
20 {% block main %}
21   {{ object.detail_bar_2022 }}
22
23   <div class="page-simple">
24     <h1>{{ object }}</h1>
25
26     <div class="l-checkout__cols" style="margin-top: 0">
27       <div class="l-checkout__col" >
28         <div class="l-checkout__payments__box is-active">
29           {% if object.cover %}
30             {% thumbnail object.cover '320x1000' as th %}
31             <img src="{{ th.url }}">
32             {% endthumbnail %}
33           {% endif %}
34         </div>
35       </div>
36       <div class="l-checkout__col funding-details">
37         <h2>{% trans "Help free the book!" %}</h2>
38         <div class="funding-description">
39           {{ object.description|safe }}
40         </div>
41         {% if object.is_current %}
42           <form method="post" style="margin: auto;">
43             {{ form.as_p }}
44             <span class="helptext">
45               {{ form.data_processing }}
46             </span>
47             <button type="submit" class="button-orange">Wesprzyj!</button>
48           </form>
49         {% else %}
50           {{ object.status }}
51           {{ object.status_more }}
52         {% endif %}
53       </div>
54     </div>
55
56   </div>
57
58
59   <div class="l-checkout__footer">
60     <div class="l-checkout__footer__content">
61
62       {% if object.is_current %}
63         <div class="l-checkout__footer__content__item">
64           <h3>Zasady</h3>
65           <div>
66             <div class="l-article__overlay" data-max-height="91">
67               {{ object.status }}
68               {{ object.status_more }}
69               {% chunk 'funding_rules'  %}
70             </div>
71             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
72           </div>
73         </div>
74
75         <div class="l-checkout__footer__content__item">
76           <h3>Wpłaty bezpośrednie</h3>
77           <div>
78             <div class="l-article__overlay" data-max-height="91">
79               <p>
80                 {% chunk 'funding_form_bottom' %}
81               </p>
82             </div>
83             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
84           </div>
85         </div>
86
87         <div class="l-checkout__footer__content__item">
88           <h3>Informacja o przetwarzaniu danych osobowych</h3>
89           <div>
90             <div class="l-article__overlay" data-max-height="91">
91               {% chunk 'donation-data-processing' %}
92             </div>
93             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
94           </div>
95         </div>
96       {% endif %}
97     </div>
98   </div>
99
100   <article class="page-simple">
101     <h1>{% trans "Supporters" %}</h1>
102     {% fundings object %}
103   </article>
104
105   {# 1% #}
106   {# share? #}
107
108 {% endblock %}