Current work on simplifying the inventory tracking page.
[htsworkflow.git] / htsworkflow / frontend / inventory / views.py
index dfb92a96ba8c41007b562f9cca750c6a8cd9a1b5..388745fda33c332a8509d26b670cf5e89d33511a 100644 (file)
@@ -133,6 +133,29 @@ def data_items(request):
     
     return HttpResponse(json.dumps(d), content_type="application/javascript")
 
+@login_required
+def category_index(request):
+    """
+    List various object types
+    """
+    # build changelist
+    item_changelist = ChangeList(request, ItemType,
+        list_filter=[],                 
+        search_fields=[],
+        list_per_page=200,
+        queryset=ItemType.objects.all()
+    )
+
+    context_dict = {
+        'item_changelist': item_changelist,
+        'page_name': 'Inventory Objects'
+    }
+    context_dict.update(INVENTORY_CONTEXT_DEFAULTS)
+    
+    return render_to_response('inventory/inventory_category.html',
+                              context_dict,
+                              context_instance=RequestContext(request))
+
 @login_required
 def index(request):
     """