</form>
-<table id="file-list"{% if viewed_user %} class="book-list-user"{% endif %}>
+<div class="card mt-4">
+ <div class="card-body">
+
+
+<table id="file-list" class="table{% if viewed_user %} book-list-user{% endif %}">
<thead><tr>
<th></th>
<th></th>
- <th>
- <input class='check-filter' type='checkbox' name='all' title='{% trans "Show hidden books" %}'
- {% if request.GET.all %}checked='checked'{% endif %} />
- </th>
+ <th></th>
<th class='book-search-column'>
<form>
<input title='{% trans "Search in book titles" %}' name="title"
- class='text-filter' value="{{ request.GET.title }}" />
+ class='form-control text-filter' value="{{ request.GET.title }}" />
</form>
</th>
- <th><select name="stage" class="filter">
+ <th><select name="stage" class="form-control filter">
<option value=''>- {% trans "stage" %} -</option>
<option {% if request.GET.stage == '-' %}selected="selected"
{% endif %}value="-">- {% trans "none" %} -</option>
</select></th>
{% if not viewed_user %}
- <th><select name="user" class="filter">
+ <th><select name="user" class="form-control filter">
<option value=''>- {% trans "editor" %} -</option>
<option {% if request.GET.user == '-' %}selected="selected"
{% endif %}value="-">- {% trans "none" %} -</option>
<th style='display: none'></th>
{% endif %}
- <th><select name="status" class="filter">
+ <th><select name="status" class="form-control filter">
<option value=''>- {% trans "status" %} -</option>
{% for state, label in states %}
<option {% if request.GET.status == state %}selected="selected"
{% endfor %}
</select></th>
- <th><select name="project" class="filter">
+ <th><select name="project" class="form-control filter">
<option value=''>- {% trans "project" %} -</option>
<option {% if request.GET.project == '-' %}selected="selected"
{% endif %}value="-">- {% trans "none" %} -</option>
</tr></thead>
- {% with cnt=books|length %}
- {% autopaginate books 100 %}
+ {% autopaginate books 100 as books_page %}
<tbody>
- {% for item in books %}
- {% with item.book as book %}
- {{ book.short_html|safe }}
+ {% for item in books_page %}
+ {% with book=item.book chunk=item.chunks.0 %}
+ {% include 'catalogue/book_list/book.html' %}
{% if not book.single %}
{% for chunk in item.chunks %}
- {{ chunk.short_html|safe }}
+ {% include 'catalogue/book_list/chunk.html' %}
{% endfor %}
{% endif %}
{% endwith %}
{% endfor %}
- <tr><th class='paginator' colspan="6">
- {% paginate %}
- {% blocktrans count c=cnt %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}</th></tr>
</tbody>
- {% endwith %}
</table>
+{% paginate %}
+ {% blocktrans count c=books|length %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}
+
+
{% if not books %}
<p>{% trans "No books found." %}</p>
{% endif %}
+ </div>
+</div>
+
<form id='chunk_mass_edit' action='{% url "catalogue_chunk_mass_edit" %}' style="display:none;">
{% csrf_token %}
<input type="hidden" name="ids" />