Make the public library browsing page support several features from
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
1 {% load i18n %}
2 {% load admin_list %}
3
4 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL}}css/changelists.css" />
5 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL}}css/click-table.css" />
6
7 <div id="content" class="flex>
8   <form action="" method="get">
9     {% block search %}{% search_form cl %}{% endblock %}
10     {% block pagination %}{% pagination cl %}{% endblock %}
11   </form>
12   {% block filters %}
13   {% if cl.has_filters %}
14   <div id="changelist-filter">
15     <h2>{% trans 'Filter' %}</h2>
16     {% for spec in cl.filter_specs %}
17        {% admin_list_filter cl spec %}
18     {% endfor %}
19   </div>
20   {% endif %}
21   {% endblock %}
22
23 {% block summary_stats %}
24 <table>
25   <thead>
26     <tr>
27     <td>Library ID</td>
28     <td>Species</td>
29     <td>Library Name</td>
30     <td>Total Lanes</td>
31     </tr>
32   </thead>
33   <tbody>
34     {% for lib in library_list%}
35     <tr>
36       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_id }}</a></td>
37       <td><a href="/library/{{ lib.library_id }}">{{ lib.species_name }}</a></td>
38       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_name }}</a></td>
39       <td>{{ lib.lanes_run }}</td>
40     </tr>
41     {% endfor %}
42   </tbody>
43 </table>
44 </div>
45 {% endblock %}