Updated Library view to show an icon if a record exists showing that the library...
[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>Parent</td>
33     <td>Library ID</td>
34     <td>Species</td>
35     <td>Library Name</td>
36     <td>Total Lanes</td>
37     <td>HD</td>
38     </tr>
39   </thead>
40   <tbody>
41     {% for lib in library_list %}
42     <tr>
43       <td><a href="/library/{{ lib.library_id }}">{{ lib.amplified_from }}</a></td>
44       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_id }}</a></td>
45       <td><a href="/library/{{ lib.library_id }}">{{ lib.species_name }}</a></td>
46       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_name }}</a></td>
47       <td>{{ lib.lanes_run }}</td>
48       {% if lib.is_archived %}
49         <td><img src="/static/img/hdd_unmount.png" alt="Archived" /></td>
50       {% else %}
51         <td></td>
52       {% endif %}
53     </tr>
54     {% endfor %}
55   </tbody>
56 </table>
57 </div>
58 {% endblock %}
59 {% endblock %}