From 73b9881dc542ed6bc5e418caed2993406ef1d331 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 13 Jun 2019 22:18:27 +1000 Subject: [PATCH] Improve table rendering for build allocation view --- InvenTree/build/templates/build/allocate.html | 5 ++++- InvenTree/build/templates/build/allocate_view.html | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/InvenTree/build/templates/build/allocate.html b/InvenTree/build/templates/build/allocate.html index 9f504e0901..3471b1283a 100644 --- a/InvenTree/build/templates/build/allocate.html +++ b/InvenTree/build/templates/build/allocate.html @@ -62,7 +62,10 @@ InvenTree | Allocate Parts {% else %} - $("#build-list").bootstrapTable({}); + $("#build-list").bootstrapTable({ + search: true, + sortable: true, + }); $("#btn-allocate").click(function() { location.href = "{% url 'build-allocate' build.id %}?edit=1"; diff --git a/InvenTree/build/templates/build/allocate_view.html b/InvenTree/build/templates/build/allocate_view.html index 4f60405ff0..b37f079b9d 100644 --- a/InvenTree/build/templates/build/allocate_view.html +++ b/InvenTree/build/templates/build/allocate_view.html @@ -10,12 +10,12 @@ - + - - - - + + + + @@ -27,9 +27,9 @@ - + {% endfor %}
PartPart DescriptionAvailableOn OrderRequiredAllocatedAvailableRequiredAllocatedOn Order
{{ item.part.description }} {{ item.part.total_stock }}{{ item.part.on_order }} {{ item.quantity }} {{ item.allocated }}{{ item.part.on_order }}