0812e83a706e52e40f8bbd54172568f6624aa2bf
[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             </div>
70             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
71           </div>
72         </div>
73
74         <div class="l-checkout__footer__content__item">
75           <h3>Wpłaty bezpośrednie</h3>
76           <div>
77             <div class="l-article__overlay" data-max-height="91">
78               <p>
79                 {% chunk 'funding_form_bottom' %}
80               </p>
81             </div>
82             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
83           </div>
84         </div>
85
86         <div class="l-checkout__footer__content__item">
87           <h3>Informacja o przetwarzaniu danych osobowych</h3>
88           <div>
89             <div class="l-article__overlay" data-max-height="91">
90               {% chunk 'donation-data-processing' %}
91             </div>
92             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
93           </div>
94         </div>
95       {% endif %}
96     </div>
97   </div>
98
99   <article class="page-simple">
100     <h1>{% trans "Supporters" %}</h1>
101     {% fundings object %}
102   </article>
103
104   {# pomóż uwolnić #}
105   {# 1% #}
106   {# share? #}
107
108
109 {% endblock %}