Fixes #4135: Payment form directly on book page.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3 {% load choose_fragment license_icon from catalogue_tags %}
4 {% load choose_cite from social_tags %}
5 {% load status from catalogue_tags %}
6 {% load chunks %}
7
8
9 {% block box-class %}book-wide-box{% endblock %}
10
11
12 {% block cover-link %}{% if book.get_first_text %}{% url 'book_text' book.get_first_text.slug %}{% endif %}{% endblock %}
13
14
15 {% block cover-area-extra %}
16   {% with license=book.get_extra_info_json.license %}
17     {% if license %}
18       {% license_icon license %}
19     {% endif %}
20   {% endwith %}
21 {% endblock %}
22
23
24 {% block preview-info %}
25   <p class="book-box-tools book-box-tools-warn">
26     {% chunk "book-preview-warn" %}
27   </p>
28
29   {% include "club/payment_info.html" %}
30 {% endblock %}
31
32
33
34 {% block right-column %}
35   <div class="right-column">
36     <div class="quote">
37       {% choose_cite book as cite_promo %}
38       {% if cite_promo %}
39         {{ cite.promo_box }}
40       {% else %}
41         {% choose_fragment book as fragment_promo %}
42         {% if fragment_promo %}
43           {{ fragment_promo.promo_box }}
44         {% endif %}
45       {% endif %}
46     </div>
47     {% include 'catalogue/snippets/jplayer.html' %}
48
49     {% if book|status:request.user == 'closed' %}
50       {% with form=club_form %}
51         <form method="POST" action="/towarzystwo/" id="payment-form" class="wlform">
52           {% csrf_token %}
53           {% include "club/payment_form.html" %}
54           {% chunk 'club_form_bottom' %}
55         </form>
56       {% endwith %}
57     {% endif %}
58
59   </div>
60 {% endblock %}
61
62
63 {% block book-box-body-pre %}
64   {% include "catalogue/snippets/like_button.html" %}
65 {% endblock %}
66
67 {% block book-box-pre %}
68 {% endblock %}