4263846c9c3574366c32b722d6072e8077c1f9f0
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
1 {% extends "base_site.html" %}
2 {% load adminmedia admin_list i18n %}
3
4 {% block stylesheet %}{{ MEDIA_URL }}css/data-browse-index.css{% endblock %}
5
6 {% block bodyclass %}change-list{% endblock %}
7 {% block coltype %}flex{% endblock %}
8
9 {% block content %}
10 <div id="content-main">
11   <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
12     {% block search %}{% search_form cl %}{% endblock %}
13
14     {% block filters %}
15     {% if cl.has_filters %}
16     <div id="changelist-filter">
17       <h2>{% trans 'Filter' %}</h2>
18       {% for spec in cl.filter_specs %}
19          {% admin_list_filter cl spec %}
20          {% endfor %}
21        </div>
22        {% endif %}
23        {% endblock %}
24
25   
26  {% block pagination %}{% pagination cl %}{% endblock %}
27
28 {% block summary_stats %}
29 <table>
30   <thead>
31     <tr>
32     <td>Library ID</td>
33     <td>Species</td>
34     <td>Library Name</td>
35     <td>Total Lanes</td>
36     </tr>
37   </thead>
38   <tbody>
39     {% for lib in library_list%}
40     <tr>
41       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_id }}</a></td>
42       <td><a href="/library/{{ lib.library_id }}">{{ lib.species_name }}</a></td>
43       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_name }}</a></td>
44       <td>{{ lib.lanes_run }}</td>
45     </tr>
46     {% endfor %}
47   </tbody>
48 </table>
49 </div>
50 {% endblock %}
51 {% endblock %}