Remove deprecated adminmedia template tag from loader.
[htsworkflow.git] / htsworkflow / frontend / templates / inventory / inventory_itemtype_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 item_changelist.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 item_changelist spec %}
32          {% endfor %}
33     </div>
34     {% endif %}
35     {% endblock %}
36   {% block summary_stats %}
37   <table class="{% if item_changelist.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.result_list %}
51       <tr about="{{ item.get_absolute_url }}">
52         <td ><a href="{{ item.get_absolute_url}}" rel="invns:uuid">{{ item.uuid }}</a></td>
53         <td ><a href="/inventory/{{ item.barcode_id }}/" rel="invns:barcode">{{ item.barcode_id }}</a></td>
54         <td property="invns:location">{{ item.location }}</td>
55         <td property="invns:item_type">{{ item.item_type }}</td>
56         <td ></td>
57         <td property="invnfs:creation_date" content="{{item.creation_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ item.creation_date }}</td>
58         <td class="cell_list" >
59           {% for content in item.longtermstorage_set.all %}
60           <a href="{{content.flowcell.get_absolute_url}}" rel="libns:flowcell_id">{{ content.flowcell }}</a>
61           {% endfor %}
62         </td>
63       </tr>
64       {% endfor %}
65     </tbody>
66   </table>
67   {% endblock %}
68   </div>
69 </div>
70 {% endblock %}