1 {% extends "documents/base.html" %}
6 {% block titleextra %}{% trans "Chunk settings" %}{% endblock %}
11 <div class="card-header">
12 <h1>{% trans "Chunk settings" %}</h1>
14 <div class="card-body">
16 <form enctype="multipart/form-data" method="POST" action="{% if go_next %}?next={{ go_next }}{% endif %}">
18 <div class='editable'>
19 <p>{% trans "Book" %}: {{ chunk.book }} ({{ chunk.number }}/{{ chunk.book|length }})</p>
20 {% bootstrap_form form %}
22 <button class="btn btn-primary" type="submit">{% trans "Save" %}</button>
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>
33 {% endblock content %}
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 %}
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>
46 $('#id_user').select2({