X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/75957f735219259d3b4bc361f80ccd3d7b92a0e9..af43a678694121f8b7c81a52a64d02c1b024fc57:/src/catalogue/templates/catalogue/book_wide.html diff --git a/src/catalogue/templates/catalogue/book_wide.html b/src/catalogue/templates/catalogue/book_wide.html index ad0384c48..9413ee70f 100644 --- a/src/catalogue/templates/catalogue/book_wide.html +++ b/src/catalogue/templates/catalogue/book_wide.html @@ -2,18 +2,33 @@ {% load i18n %} {% load choose_fragment license_icon from catalogue_tags %} {% load choose_cite from social_tags %} +{% load status from catalogue_tags %} +{% load chunks %} {% block box-class %}book-wide-box{% endblock %} +{% block cover-link %}{% if book.get_first_text %}{% url 'book_text' book.get_first_text.slug %}{% endif %}{% endblock %} + + {% block cover-area-extra %} - {% if book.extra_info.license %} - {% license_icon book.extra_info.license %} - {% endif %} + {% with license=book.get_extra_info_json.license %} + {% if license %} + {% license_icon license %} + {% endif %} + {% endwith %} +{% endblock %} + + +{% block preview-info %} +

+ {% chunk "book-preview-warn" %} +

{% endblock %} + {% block right-column %}
@@ -28,6 +43,20 @@ {% endif %}
{% include 'catalogue/snippets/jplayer.html' %} + + {% if book|status:request.user == 'closed' %} + {% with form=club_form %} +
+ {% csrf_token %} + {% include "club/payment_form.html" %} + {% chunk 'club_form_bottom' %} +
+ {% endwith %} + + {% include "club/payment_info.html" %} + {% endif %} + +
{% endblock %}