X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/42ee328f2c761f8453cd3a858b05410499a7cc9a..9e4c8e837be2943198e7c300e1ff3cde3185e0cc:/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 26b085ad4..d7c2a09d5 100644 --- a/src/catalogue/templates/catalogue/book_wide.html +++ b/src/catalogue/templates/catalogue/book_wide.html @@ -2,12 +2,14 @@ {% 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 %}{% url 'book_text' book.get_first_text.slug %}{% endblock %} +{% block cover-link %}{% if book.get_first_text %}{% url 'book_text' book.get_first_text.slug %}{% endif %}{% endblock %} {% block cover-area-extra %} @@ -19,6 +21,14 @@ {% endblock %} +{% block preview-info %} +

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

+{% endblock %} + + + {% block right-column %}
@@ -33,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 %}