2 {% load pagination_tags %}
3 {% load username from common_tags %}
7 <form name='filter' action='{{ request.path }}'>
8 <input type='hidden' name="title" value="{{ request.GET.title }}" />
9 <input type='hidden' name="stage" value="{{ request.GET.stage }}" />
10 {% if not viewed_user %}
11 <input type='hidden' name="user" value="{{ request.GET.user }}" />
13 <input type='hidden' name="status" value="{{ request.GET.status }}" />
14 <input type='hidden' name="project" value="{{ request.GET.project }}" />
17 <table id="file-list"{% if viewed_user %} class="book-list-user"{% endif %}>
21 <th class='book-search-column'>
23 <input title='{% trans "Search in book titles" %}' name="title"
24 class='text-filter' value="{{ request.GET.title }}" />
27 <th><select name="stage" class="filter">
28 <option value=''>- {% trans "stage" %} -</option>
29 <option {% if request.GET.stage == '-' %}selected="selected"
30 {% endif %}value="-">- {% trans "none" %} -</option>
31 {% for stage in stages %}
32 <option {% if request.GET.stage == stage.slug %}selected="selected"
33 {% endif %}value="{{ stage.slug }}">{{ stage.name }}</option>
37 {% if not viewed_user %}
38 <th><select name="user" class="filter">
39 <option value=''>- {% trans "editor" %} -</option>
40 <option {% if request.GET.user == '-' %}selected="selected"
41 {% endif %}value="-">- {% trans "none" %} -</option>
42 {% for user in users %}
43 <option {% if request.GET.user == user.username %}selected="selected"
44 {% endif %}value="{{ user.username }}">{{ user|username }} ({{ user.count }})</option>
49 <th><select name="status" class="filter">
50 <option value=''>- {% trans "status" %} -</option>
51 {% for state, label in states %}
52 <option {% if request.GET.status == state %}selected="selected"
53 {% endif %}value='{{ state }}'>{{ label }}</option>
57 <th><select name="project" class="filter">
58 <option value=''>- {% trans "project" %} -</option>
59 <option {% if request.GET.project == '-' %}selected="selected"
60 {% endif %}value="-">- {% trans "none" %} -</option>
61 {% for project in projects %}
62 <option {% if request.GET.project == project.pk|slugify %}selected="selected"
63 {% endif %}value='{{ project.pk }}'>{{ project.name }}</option>
69 {% with cnt=objects|length %}
70 {% autopaginate objects 100 %}
72 {% for image in objects %}
73 {% include 'catalogue/image_short.html' %}
75 <tr><th class='paginator' colspan="6">
77 {% blocktrans count c=cnt %}{{c}} image{% plural %}{{c}} images{% endblocktrans %}</th></tr>
82 <p>{% trans "No images found." %}</p>
85 <form id='chunk_mass_edit' action='{% url "catalogue_image_mass_edit" %}' style="display:none;">
87 <input type="hidden" name="ids" />
88 <label for="mass_edit_stage">{% trans "Set stage" %}</label><input type="hidden" name="stage" id="mass_edit_stage"/>
89 <label for="mass_edit_user">{% trans "Set user" %}</label><input type="hidden" name="user" id="mass_edit_stage" />
90 <input type="hidden" name="status" />
91 <label for="mass_edit_project">{% trans "Project" %}</label><input type="hidden" name="project" id="mass_edit_project" />
92 <label for="mass_edit_more_users">{% trans "More users" %}</label>
95 <select name="other-user" style="display:none;">
96 {% for user in other_users %}
97 <option {% if request.GET.user == user.username %}selected="selected"
98 {% endif %}value="{{ user.username }}">{{ user|username }} ({{ user.count }})</option>