Visual changes, removing some items not applicable in the ER editing context.
[redakcja.git] / apps / catalogue / templates / catalogue / book_list / book_list.html
index 8b76326..ded5922 100755 (executable)
 {% endif %}
 <input type='hidden' name="all" value="{{ request.GET.all }}" />
 <input type='hidden' name="status" value="{{ request.GET.status }}" />
+<input type='hidden' name="project" value="{{ request.GET.project }}" />
 </form>
 
 
 <table id="file-list"{% if viewed_user %} class="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 class='book-search-column'>
             <form>
-            <input title='{% trans "Search in book titles" %}' name="title"
+            <input title='Szukaj w tytułach modułów' name="title"
                 class='text-filter' value="{{ request.GET.title }}" />
             </form>
         </th>
             </select></th>
         {% endif %}
 
-        <th><select name="status" class="filter">
-            <option value=''>- {% trans "status" %} -</option>
-            {% for state, label in states %}
-                <option {% if request.GET.status == state %}selected="selected"
-                        {% endif %}value='{{ state }}'>{{ label }}</option>
+        <th><select name="project" class="filter">
+            <option value=''>- poziom edukacyjny -</option>
+                <option {% if request.GET.project == '-' %}selected="selected"
+                        {% endif %}value="-">- {% trans "none" %} -</option>
+            {% for project in projects %}
+                <option {% if request.GET.project == project.pk|slugify %}selected="selected"
+                        {% endif %}value='{{ project.pk }}'>{{ project.name }}</option>
             {% endfor %}
         </select></th>
 
+        <th></th>
     </tr></thead>
 
     {% with cnt=books|length %}
     {% endfor %}
     <tr><th class='paginator' colspan="5">
         {% paginate %}
-        {% blocktrans count c=cnt %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}</th></tr>
+        {% blocktrans count c=cnt %}{{c}} module{% plural %}{{c}} modules{% endblocktrans %}</th></tr>
     </tbody>
     {% endwith %}
 </table>
 {% if not books %}
-    <p>{% trans "No books found." %}</p>
+    <p>Nie znaleziono modułów.</p>
 {% endif %}
 
-<form id='chunk_mass_edit' action='{% url catalogue_chunk_mass_edit %}' class="hidden">
+<form id='chunk_mass_edit' action='{% url "catalogue_chunk_mass_edit" %}' style="display:none;">
 {% csrf_token %}
 <input type="hidden" name="ids" />
-<input type="hidden" name="stage" />
-<input type="hidden" name="user" />
+<label for="mass_edit_stage">{% trans "Set stage" %}</label><input type="hidden" name="stage" id="mass_edit_stage"/>
+<label for="mass_edit_user">{% trans "Set user" %}</label><input type="hidden" name="user" id="mass_edit_stage" />
 <input type="hidden" name="status" />
+<label for="mass_edit_project">Poziom edukacyjny</label><input type="hidden" name="project" id="mass_edit_project" />
+<label for="mass_edit_publish">{% trans "Mark publishable" %}</label>
+<label for="mass_edit_unpublish">{% trans "Mark not publishable" %}</label>
+<label for="mass_edit_other">{% trans "Other user" %}</label>
 </form>
 
 <select name="other-user" style="display:none;">
@@ -96,4 +99,3 @@
           {% endif %}value="{{ user.username }}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
   {% endfor %}
 </select>
-