Show the "Amplified from sample" as the parent library id and allow
[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     </tr>
38   </thead>
39   <tbody>
40     {% for lib in library_list %}
41     <tr>
42       <td><a href="/library/{{ lib.library_id }}">{{ lib.amplified_from }}</a></td>
43       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_id }}</a></td>
44       <td><a href="/library/{{ lib.library_id }}">{{ lib.species_name }}</a></td>
45       <td><a href="/library/{{ lib.library_id }}">{{ lib.library_name }}</a></td>
46       <td>{{ lib.lanes_run }}</td>
47     </tr>
48     {% endfor %}
49   </tbody>
50 </table>
51 </div>
52 {% endblock %}
53 {% endblock %}