Remove deprecated adminmedia template tag from loader.
[htsworkflow.git] / htsworkflow / frontend / templates / inventory / inventory_all_index.html
1 {% extends "base_site.html" %}
2 {% load admin_list i18n %}
3 {% block extrahead %}
4     <script type="text/javascript">
5       $(document).ready(function() {
6         $(window).resize(function() {
7            var window_height = $(window).height();
8            var position = $("#changelist table").position();
9            height = window_height - position.top;
10            $("#changelist table.filtered").height(height);
11            $("#changelist-filter").height(height);
12         });
13         $(window).resize();
14       });
15     </script>
16 {% endblock %}
17 {% block bodyclass %}change-list{% endblock %}
18 {% block coltype %}flex{% endblock %}
19 {% block content %}
20 <div id="inventory-index-div" >
21   <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
22     {% block search %}{% search_form item_changelist %}{% endblock %}
23  
24     {% block pagination %}{% pagination item_changelist %}{% endblock %}
25
26     {% block filters %}
27     {% if item_changelist.has_filters %}
28     <div id="changelist-filter">
29       <h2 >{% trans 'Filter' %}</h2>
30       {% for spec in item_changelist.filter_specs %}
31          {% admin_list_filter cl spec %}
32          {% endfor %}
33        </div>
34     {% endif %}
35     {% endblock %}
36   {% block summary_stats %}
37   <table class="{% if cl.has_filters %} filtered{% endif %}">
38     <thead >
39       <tr >
40         <td >UUID</td>
41         <td >Barcode ID</td>
42         <td >Location</td>
43         <td >Model</td>
44         <td >Vendor</td>
45         <td >Created</td>
46         <td >Contains</td>
47       </tr>
48     </thead>
49     <tbody >
50       {% for item in item_changelist.get_query_set %}
51       <tr >
52         <td >{{ item.uuid }}</td>
53         <td >{{ item.barcode_id}}</td>
54         <td >{{ item.location }}</td>
55         <td >{{ item.item_type }}</td>
56         <td ></td>      
57         <td >{{ item.creation_date }}</td>      
58         <td >
59           {% for content in item.longtermstorage_set.all %}
60           {{ content.flowcell }}
61           {% endfor %}
62         </td>
63       </tr>
64       {% endfor %}
65     </tbody>
66   </table>
67   {% endblock %}
68 </div>
69 {% endblock %}