Remove deprecated adminmedia template tag from loader.
[htsworkflow.git] / htsworkflow / frontend / templates / inventory / inventory_index.html
index 399dae1c6940ac4abf21bfad5fa7a2e749188f9e..7c7eb508065dc850d2249f19bab2c5c0a33881c8 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "base_site.html" %}
-{% load adminmedia admin_list i18n %}
+{% load admin_list i18n %}
 {% block extrahead %}
     <script type="text/javascript">
       $(document).ready(function() {
@@ -18,7 +18,7 @@
 {% block coltype %}flex{% endblock %}
 {% block content %}
 <div id="inventory-index-div" >
-  <div class="module{% if cl.has_filters %} filtered{% endif %}" id="changelist">
+  <div class="module{% if item_changelist.has_filters %} filtered{% endif %}" id="changelist">
     {% block search %}{% search_form item_changelist %}{% endblock %}
  
     {% block pagination %}{% pagination item_changelist %}{% endblock %}
     <div id="changelist-filter">
       <h2 >{% trans 'Filter' %}</h2>
       {% for spec in item_changelist.filter_specs %}
-         {% admin_list_filter cl spec %}
+         {% admin_list_filter item_changelist spec %}
          {% endfor %}
        </div>
     {% endif %}
     {% endblock %}
   {% block summary_stats %}
-  <table class="{% if cl.has_filters %} filtered{% endif %}">
+  <table class="{% if item_changelist.has_filters %} filtered{% endif %}">
     <thead >
       <tr >
-        <td >UUID</td>
-        <td >Barcode ID</td>
-        <td >Location</td>
-        <td >Model</td>
-        <td >Vendor</td>
-        <td >Created</td>
-        <td >Contains</td>
+        <td >Name</td>
+        <td >Description</td>
       </tr>
     </thead>
     <tbody >
-      {% for item in item_changelist.get_query_set %}
+      {% for itemtype in item_changelist.result_list %}
       <tr >
-        <td >{{ item.uuid }}</td>
-        <td >{{ item.barcode_id}}</td>
-        <td >{{ item.location }}</td>
-        <td >{{ item.item_type }}</td>
-        <td ></td>      
-        <td >{{ item.creation_date }}</td>      
-        <td >
-          {% for content in item.longtermstorage_set.all %}
-          {{ content.flowcell }}
-          {% endfor %}
-        </td>
+        <td ><a href="/inventory/it/{{ itemtype.name }}/">{{ itemtype.name }}</a></td>
+        <td >{{ itemtype.description }}</td>
       </tr>
       {% endfor %}
     </tbody>