2 {% load pagination_tags %}
5 <form name='filter' action='{{ request.path }}'>
6 <input type='hidden' name="title" value="{{ request.GET.title }}" />
7 <input type='hidden' name="stage" value="{{ request.GET.stage }}" />
8 {% if not viewed_user %}
9 <input type='hidden' name="user" value="{{ request.GET.user }}" />
11 <input type='hidden' name="all" value="{{ request.GET.all }}" />
12 <input type='hidden' name="status" value="{{ request.GET.status }}" />
13 <input type='hidden' name="project" value="{{ request.GET.project }}" />
17 <table id="file-list"{% if viewed_user %} class="book-list-user"{% endif %}>
22 <input class='check-filter' type='checkbox' name='all' title='{% trans "Show hidden books" %}'
23 {% if request.GET.all %}checked='checked'{% endif %} />
25 <th class='book-search-column'>
27 <input title='{% trans "Search in book titles" %}' name="title"
28 class='text-filter' value="{{ request.GET.title }}" />
31 <th><select name="stage" class="filter">
32 <option value=''>- {% trans "stage" %} -</option>
33 <option {% if request.GET.stage == '-' %}selected="selected"
34 {% endif %}value="-">- {% trans "none" %} -</option>
35 {% for stage in stages %}
36 <option {% if request.GET.stage == stage.slug %}selected="selected"
37 {% endif %}value="{{ stage.slug }}">{{ stage.name }}</option>
41 {% if not viewed_user %}
42 <th><select name="user" class="filter">
43 <option value=''>- {% trans "editor" %} -</option>
44 <option {% if request.GET.user == '-' %}selected="selected"
45 {% endif %}value="-">- {% trans "none" %} -</option>
46 {% for user in users %}
47 <option {% if request.GET.user == user.username %}selected="selected"
48 {% endif %}value="{{ user.username }}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
52 <th style='display: none'></th>
55 <th><select name="status" class="filter">
56 <option value=''>- {% trans "status" %} -</option>
57 {% for state, label in states %}
58 <option {% if request.GET.status == state %}selected="selected"
59 {% endif %}value='{{ state }}'>{{ label }}</option>
63 <th><select name="project" class="filter">
64 <option value=''>- {% trans "project" %} -</option>
65 <option {% if request.GET.project == '-' %}selected="selected"
66 {% endif %}value="-">- {% trans "none" %} -</option>
67 {% for project in projects %}
68 <option {% if request.GET.project == project.pk|slugify %}selected="selected"
69 {% endif %}value='{{ project.pk }}'>{{ project.name }}</option>
75 {% with cnt=books|length %}
76 {% autopaginate books 100 %}
78 {% for item in books %}
79 {% with item.book as book %}
80 {{ book.short_html|safe }}
81 {% if not book.single %}
82 {% for chunk in item.chunks %}
83 {{ chunk.short_html|safe }}
88 <tr><th class='paginator' colspan="6">
90 {% blocktrans count c=cnt %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}</th></tr>
95 <p>{% trans "No books found." %}</p>
98 <form id='chunk_mass_edit' action='{% url "catalogue_chunk_mass_edit" %}' style="display:none;">
100 <input type="hidden" name="ids" />
101 <label for="mass_edit_stage">{% trans "Set stage" %}</label><input type="hidden" name="stage" id="mass_edit_stage"/>
102 <label for="mass_edit_user">{% trans "Set user" %}</label><input type="hidden" name="user" id="mass_edit_stage" />
103 <input type="hidden" name="status" />
104 <label for="mass_edit_project">{% trans "Project" %}</label><input type="hidden" name="project" id="mass_edit_project" />
105 <label for="mass_edit_publish">{% trans "Mark publishable" %}</label>
106 <label for="mass_edit_unpublish">{% trans "Mark not publishable" %}</label>
107 <label for="mass_edit_other">{% trans "Other user" %}</label>
110 <select name="other-user" style="display:none;">
111 {% for user in other_users %}
112 <option {% if request.GET.user == user.username %}selected="selected"
113 {% endif %}value="{{ user.username }}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>