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 }}" />
15 <table id="file-list"{% if viewed_user %} class="book-list-user"{% endif %}>
19 <input class='check-filter' type='checkbox' name='all' title='{% trans "Show hidden books" %}'
20 {% if request.GET.all %}checked='checked'{% endif %} />
22 <th class='book-search-column'>
24 <input title='{% trans "Search in book titles" %}' name="title"
25 class='text-filter' value="{{ request.GET.title }}" />
28 <th><select name="stage" class="filter">
29 <option value=''>- {% trans "stage" %} -</option>
30 <option {% if request.GET.stage == '-' %}selected="selected"
31 {% endif %}value="-">- {% trans "none" %} -</option>
32 {% for stage in stages %}
33 <option {% if request.GET.stage == stage.slug %}selected="selected"
34 {% endif %}value="{{ stage.slug }}">{{ stage.name }}</option>
38 {% if not viewed_user %}
39 <th><select name="user" class="filter">
40 <option value=''>- {% trans "editor" %} -</option>
41 <option {% if request.GET.user == '-' %}selected="selected"
42 {% endif %}value="-">- {% trans "none" %} -</option>
43 {% for user in users %}
44 <option {% if request.GET.user == user.username %}selected="selected"
45 {% endif %}value="{{ user.username }}">{{ user.first_name }} {{ user.last_name }} ({{ user.count }})</option>
49 <th style='display: none'></th>
52 <th><select name="status" class="filter">
53 <option value=''>- {% trans "status" %} -</option>
54 {% for state, label in states %}
55 <option {% if request.GET.status == state %}selected="selected"
56 {% endif %}value='{{ state }}'>{{ label }}</option>
62 {% with cnt=books|length %}
63 {% autopaginate books 100 %}
65 {% for item in books %}
66 {% with item.book as book %}
67 {{ book.short_html|safe }}
68 {% if not book.single %}
69 {% for chunk in item.chunks %}
70 {{ chunk.short_html|safe }}
75 <tr><th class='paginator' colspan="6">
77 {% blocktrans count c=cnt %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}</th></tr>
82 <p>{% trans "No books found." %}</p>