Begin bootstapify.
[redakcja.git] / src / catalogue / templates / catalogue / book_list / book_list.html
index 25a2e00..0d761b8 100755 (executable)
 </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 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>
@@ -37,7 +41,7 @@
         </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>
@@ -50,7 +54,7 @@
             <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"
@@ -58,7 +62,7 @@
             {% 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 %}
+    {% for item in books_page %}
         {% with book=item.book chunk=item.chunks.0  %}
            {% include 'catalogue/book_list/book.html' %}
             {% if not book.single %}
             {% 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" />