Download cover with label.
[redakcja.git] / src / documents / templates / documents / chunk_edit.html
1 {% extends "documents/base.html" %}
2 {% load i18n %}
3 {% load bootstrap4 %}
4
5
6 {% block titleextra %}{% trans "Chunk settings" %}{% endblock %}
7
8
9 {% block content %}
10 <div class="card">
11         <div class="card-header">
12     <h1>{% trans "Chunk settings" %}</h1>
13         </div>
14         <div class="card-body">
15
16         <form enctype="multipart/form-data" method="POST" action="{% if go_next %}?next={{ go_next }}{% endif %}">
17     {% csrf_token %}
18     <div class='editable'>
19             <p>{% trans "Book" %}: {{ chunk.book }} ({{ chunk.number }}/{{ chunk.book|length }})</p>
20         {% bootstrap_form form %}
21         {% buttons %}
22                 <button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
23                 {% endbuttons %}
24     </div>
25
26         </form>
27
28
29         <p style="text-align: right"><a class="btn btn-danger" href="{% url "documents_chunk_add" chunk.book.slug chunk.slug %}">{% trans "Split chunk" %}</a></p>
30         </div>
31 </div>
32
33 {% endblock content %}
34
35
36 {% block add_css %}
37   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" />
38   <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ttskch/select2-bootstrap4-theme@x.x.x/dist/select2-bootstrap4.min.css">
39 {% endblock add_css %}
40
41
42 {% block add_js %}
43   <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js" integrity="sha256-9yRP/2EFlblE92vzCA10469Ctd0jT48HnmmMw5rJZrA=" crossorigin="anonymous"></script>
44   <script>
45    $(function () {
46        $('#id_user').select2({
47            theme: 'bootstrap4',
48        });
49    });
50   </script>
51 {% endblock add_js %}