b6d89e6d14deeb250b87ae35ec957ca50ddd908c
[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=""><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">
37         <div class="funding-description">
38           {{ object.description|safe }}
39         </div>
40         {% if object.is_current %}
41           <form method="post" style="margin: auto;">
42             {{ form.as_p }}
43             <span class="helptext">
44               {{ form.data_processing }}
45             </span>
46             <button type="submit">{% trans 'Donate!' %}</button>
47           </form>
48         {% else %}
49           {{ object.status }}
50           {{ object.status_more }}
51         {% endif %}
52       </div>
53     </div>
54
55   </div>
56
57
58   <div class="l-checkout__footer">
59     <div class="l-checkout__footer__content">
60
61       {% if object.is_current %}
62         <div class="l-checkout__footer__content__item">
63           <h3>Zasady</h3>
64           <div>
65             <div class="l-article__overlay" data-max-height="91">
66               {{ object.status }}
67               {{ object.status_more }}
68             </div>
69             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
70           </div>
71         </div>
72
73         <div class="l-checkout__footer__content__item">
74           <h3>Wpłaty bezpośrednie</h3>
75           <div>
76             <div class="l-article__overlay" data-max-height="91">
77               <p>
78                 {% chunk 'funding_form_bottom' %}
79               </p>
80             </div>
81             <button class="l-article__read-more" aria-label="Kliknij aby rozwinąć" data-label="Więcej" data-action="Mniej">Więcej</button>
82           </div>
83         </div>
84       {% endif %}
85
86     </div>
87   </div>
88
89   <article class="page-simple">
90     <h1>{% trans "Supporters" %}</h1>
91     {% fundings object %}
92   </article>
93
94   {# pomóż uwolnić #}
95   {# 1% #}
96   {# share? #}
97
98
99 {% endblock %}