2 {% load pagination_tags %}
3 {% load username from common_tags %}
6 <form name='filter' action='{{ request.path }}'>
7 <input type='hidden' name="title" value="{{ request.GET.title }}" />
8 <input type='hidden' name="stage" value="{{ request.GET.stage }}" />
9 {% if not viewed_user %}
10 <input type='hidden' name="user" value="{{ request.GET.user }}" />
12 <input type='hidden' name="all" value="{{ request.GET.all }}" />
13 <input type='hidden' name="status" value="{{ request.GET.status }}" />
14 <input type='hidden' name="project" value="{{ request.GET.project }}" />
19 <div class="card-body">
22 <table id="file-list" class="table{% if viewed_user %} book-list-user{% endif %}">
27 <th class='book-search-column'>
29 <input title='{% trans "Search in book titles" %}' name="title"
30 class='form-control text-filter' value="{{ request.GET.title }}" />
33 <th><select name="stage" class="form-control filter">
34 <option value=''>- {% trans "stage" %} -</option>
35 <option {% if request.GET.stage == '-' %}selected="selected"
36 {% endif %}value="-">- {% trans "none" %} -</option>
37 {% for stage in stages %}
38 <option {% if request.GET.stage == stage.slug %}selected="selected"
39 {% endif %}value="{{ stage.slug }}">{{ stage.name }}</option>
43 {% if not viewed_user %}
44 <th><select name="user" class="form-control filter">
45 <option value=''>- {% trans "editor" %} -</option>
46 <option {% if request.GET.user == '-' %}selected="selected"
47 {% endif %}value="-">- {% trans "none" %} -</option>
48 {% for user in users %}
49 <option {% if request.GET.user == user.username %}selected="selected"
50 {% endif %}value="{{ user.username }}">{{ user|username }} ({{ user.count }})</option>
54 <th style='display: none'></th>
57 <th><select name="status" class="form-control filter">
58 <option value=''>- {% trans "status" %} -</option>
59 {% for state, label in states %}
60 <option {% if request.GET.status == state %}selected="selected"
61 {% endif %}value='{{ state }}'>{{ label }}</option>
65 <th><select name="project" class="form-control filter">
66 <option value=''>- {% trans "project" %} -</option>
67 <option {% if request.GET.project == '-' %}selected="selected"
68 {% endif %}value="-">- {% trans "none" %} -</option>
69 {% for project in projects %}
70 <option {% if request.GET.project == project.pk|slugify %}selected="selected"
71 {% endif %}value='{{ project.pk }}'>{{ project.name }}</option>
77 {% autopaginate books 100 as books_page %}
79 {% for item in books_page %}
80 {% with book=item.book chunk=item.chunks.0 %}
81 {% include 'documents/book_list/book.html' %}
82 {% if not book.single %}
83 {% for chunk in item.chunks %}
84 {% include 'documents/book_list/chunk.html' %}
92 {% blocktrans count c=books|length %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}
96 <p>{% trans "No books found." %}</p>
102 <form id='chunk_mass_edit' action='{% url "documents_chunk_mass_edit" %}' style="display:none;">
104 <input type="hidden" name="ids" />
105 <label for="mass_edit_stage">{% trans "Set stage" %}</label><input type="hidden" name="stage" id="mass_edit_stage"/>
106 <label for="mass_edit_user">{% trans "Set user" %}</label><input type="hidden" name="user" id="mass_edit_user" />
107 <input type="hidden" name="status" />
108 <label for="mass_edit_project">{% trans "Project" %}</label><input type="hidden" name="project" id="mass_edit_project" />
109 <label for="mass_edit_more_users">{% trans "More users" %}</label>
112 <select name="other-user" style="display:none;">
113 {% for user in other_users %}
114 <option {% if request.GET.user == user.username %}selected="selected"
115 {% endif %}value="{{ user.username }}">{{ user|username }} ({{ user.count }})</option>
119 <select name="active-users" style="display:none;">
120 {% for user in active_users %}
121 <option value="{{ user.username }}">{{ user|username }}</option>