Current work on simplifying the inventory tracking page.
[htsworkflow.git] / htsworkflow / frontend / templates / inventory / inventory_index.html
1 {% extends "base_site.html" %}
2 {% load adminmedia admin_list i18n %}
3 {% block bodyclass %}change-list{% endblock %}
4 {% block coltype %}flex{% endblock %}
5 {% block content %}
6 <div id="inventory-index-div" >
7   <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
8     {% block search %}{% search_form item_changelist %}{% endblock %}
9  
10     {% block pagination %}{% pagination item_changelist %}{% endblock %}
11
12     {% block filters %}
13     {% if item_changelist.has_filters %}
14     <div id="changelist-filter">
15       <h2 >{% trans 'Filter' %}</h2>
16       {% for spec in item_changelist.filter_specs %}
17          {% admin_list_filter cl spec %}
18          {% endfor %}
19        </div>
20     {% endif %}
21     {% endblock %}
22   {% block summary_stats %}
23   <table class="{% if cl.has_filters %} filtered{% endif %}">
24     <thead >
25       <tr >
26         <td >UUID</td>
27         <td >Barcode ID</td>
28         <td >Location</td>
29         <td >Model</td>
30         <td >Vendor</td>
31         <td >Created</td>
32         <td >Contains</td>
33       </tr>
34     </thead>
35     <tbody >
36       {% for item in item_changelist.get_query_set %}
37       <tr >
38         <td >{{ item.uuid }}</td>
39         <td >{{ item.barcode_id}}</td>
40         <td >{{ item.location }}</td>
41         <td >{{ item.item_type }}</td>
42         <td ></td>      
43         <td >{{ item.creation_date }}</td>      
44         <td >
45           {% for content in item.longtermstorage_set.all %}
46           {{ content.flowcell }}
47           {% endfor %}
48         </td>
49       </tr>
50       {% endfor %}
51     </tbody>
52   </table>
53   {% endblock %}
54 </div>
55 {% endblock %}