Add pages to show information about a particular flowcell.
[htsworkflow.git] / htsworkflow / frontend / templates / samples / library_index.html
1 {% extends "base_site.html" %}
2 {% load adminmedia admin_list i18n %}
3 {% block extrahead %}
4     <!-- App Stuff -->
5     <link type="text/css" rel="stylesheet" href="/static/css/app.css" />
6     
7     {% block additional_javascript %}    
8     <script type="text/javascript" src="/static/js/jquery.min.js"></script>
9     <script type="text/javascript" src="/static/js/htsw.js"></script>
10     <script type="text/javascript">
11       $(document).ready(function() {
12         $(window).resize(function() {
13            var window_height = $(window).height();
14            var position = $("#changelist table").position();
15            height = window_height - position.top;
16            $("#changelist table.filtered").height(height);
17            $("#changelist-filter").height(height);
18         });
19         $(window).resize();
20       });
21     </script>
22     {% endblock %}
23 {% endblock %}
24 {% block bodyclass %}change-list{% endblock %}
25 {% block coltype %}flex{% endblock %}
26
27 {% block content %}
28 <div id="library-index-div" >
29   <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
30     {% block search %}{% search_form cl %}{% endblock %}
31  
32     {% block pagination %}{% pagination cl %}{% endblock %}
33
34     {% block filters %}
35     {% if cl.has_filters %}
36     <div id="changelist-filter">
37       <h2 >{% trans 'Filter' %}</h2>
38       {% for spec in cl.filter_specs %}
39          {% admin_list_filter cl spec %}
40          {% endfor %}
41     </div>
42     {% endif %}
43     {% endblock %}
44   {% block summary_stats %}
45   <table class="{% if cl.has_filters %} filtered{% endif %}">
46     <thead >
47       <tr >
48         <td >Parent</td>
49         <td >Library ID</td>
50         <td >Species</td>
51         <td >Library Name</td>
52         <td colspan="3" >Single</td>
53         <td colspan="3" >Paired</td>
54         <td >HD</td>
55       </tr>
56       <tr >
57         <td colspan="4"></td>
58         <td>&lt;40</td>
59         <td>&lt;100</td>
60         <td>100+</td>
61         <td>&lt;40</td>
62         <td>&lt;100</td>
63         <td>100+</td>
64         <td></td>
65       </tr>
66     </thead>
67     <tbody >
68       {% for lib in library_list %}
69       <tr about="{{lib.library.get_absolute_url}}">
70         <td ><a href="{{lib.library.get_absolute_url}}">{{ lib.amplified_from }}</a></td>
71         <td ><a href="{{lib.library.get_absolute_url}}"><span property="libns:library_id">{{ lib.library_id }}</span></a></td>
72         <td ><a href="{{lib.library.library_species.get_absolute_url}}" rel="libns:species"><span property="libns:species_name">{{ lib.species_name }}</span></a></td>
73         <td ><a href="{{ lib.library.get_absolute_url }}"><span property="libns:library_name">{{ lib.library_name }}</span></a></td>
74         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.0 }}</td>      
75         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.1 }}</td>      
76         <td  bgcolor="#00BFFF">{{ lib.lanes_run.0.2 }}</td>      
77         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.0 }}</td>
78         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.1 }}</td>      
79         <td  bgcolor="#66CDAA">{{ lib.lanes_run.1.2 }}</td>      
80         {% if lib.is_archived %}
81           <td ><img src="/static/img/hdd_unmount.png" alt="Archived" /></td>
82         {% else %}
83           <td ></td>
84         {% endif %}
85       </tr>
86       {% endfor %}
87     </tbody>
88   </table>
89   </div>
90   {% endblock %}
91 </div>
92 {% endblock %}