1 {% extends "catalogue/base.html" %}
2 {% load book_list i18n %}
6 {% block titleextra %}{{ book.title }}{% endblock %}
11 <div class="card mt-4">
12 <div class="card-header">
13 <h1>{{ book.title }}</h1>
15 <div class="card-body">
19 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
20 {% bootstrap_form form %}
23 <button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
26 {% if editable %}</form>{% endif %}
30 <p><a href="{% url 'catalogue_book_gallery' book.slug %}">{% trans "Edit gallery" %}</a></p>
33 <p style="text-align:right"><a class="btn btn-sm btn-danger" href="{% url 'catalogue_book_append' book.slug %}">{% trans "Append to other book" %}</a></p>
38 <div class="card mt-4">
39 <div class="card-header">
40 <h2>{% trans "Chunks" %}</h2>
42 <div class="card-body">
44 <table class='single-book-list table'><tbody>
45 {% for chunk in book %}
46 {% include 'catalogue/book_list/chunk.html' %}
55 <div class='card mt-4'>
57 <div class="card-header">
58 <h2>{% trans "Publication" %}</h2>
60 <div class="card-body">
62 <div class="col-lg-3">
63 <img class="cover-preview" src="{% url 'cover_preview' book.slug %}" />
64 {% if book.dc_cover_image %}
65 <a href="{{ book.dc_cover_image.get_absolute_url }}">{{ book.dc_cover_image }}</a>
68 <form action="{% url 'cover_preview' book.slug %}">
69 <input type="hidden" name="download" value="1">
71 <input name="width" type="number" required value="600"> x <input name="height" type="number" required value="833">
72 <button type="submit" class="btn btn-sm btn-primary">Pobierz</button>
75 <div class="col-lg-9">
76 <p>{% trans "Last published" %}:
77 {% if book.last_published %}
78 {{ book.last_published }}
86 <a href="{% url 'catalogue_book_xml' book.slug %}" rel="nofollow">{% trans "Full XML" %}</a><br/>
87 <a target="_blank" href="{% url 'catalogue_book_html' book.slug %}" rel="nofollow">{% trans "HTML version" %}</a><br/>
88 <a href="{% url 'catalogue_book_txt' book.slug %}" rel="nofollow">{% trans "TXT version" %}</a><br/>
89 <a href="{% url 'catalogue_book_pdf' book.slug %}" rel="nofollow">{% trans "PDF version" %}</a><br/>
90 <a href="{% url 'catalogue_book_pdf_mobile' book.slug %}" rel="nofollow">{% trans "PDF version for mobiles" %}</a><br/>
91 <a href="{% url 'catalogue_book_epub' book.slug %}" rel="nofollow">{% trans "EPUB version" %}</a><br/>
92 <a href="{% url 'catalogue_book_mobi' book.slug %}" rel="nofollow">{% trans "MOBI version" %}</a><br/>
95 {% if user.is_authenticated %}
98 Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
99 mira66 (http://www.flickr.com/photos/21804434@N02/) /
100 CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
102 <form method="POST" action="{% url 'catalogue_publish' book.slug %}">{% csrf_token %}
103 {{ publish_options_form.as_p }}
104 <img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" />
105 <button id="publish-button" type="submit">
106 <span>{% trans "Publish" %}</span></button>
107 <img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" />
110 <a href="{% url 'cas_ng_login' %}">{% trans "Log in to publish." %}</a>
113 <p>{% trans "This book can't be published yet, because:" %}</p>
114 <ul><li>{{ publishable_error }}</li></ul>
119 {% endblock content %}