From 68cf6919a7c88e69932f1f1d6dcf6456fb776f37 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 3 May 2018 23:39:08 +1000 Subject: [PATCH] Updated part views - Allocation table now uses bootstrap-table - Added checkbox column to supplier table (no function yet) --- InvenTree/part/templates/part/allocation.html | 29 ++++++++++++++++++- InvenTree/part/templates/part/supplier.html | 3 ++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/allocation.html b/InvenTree/part/templates/part/allocation.html index 0430fea14a..e090855d40 100644 --- a/InvenTree/part/templates/part/allocation.html +++ b/InvenTree/part/templates/part/allocation.html @@ -7,7 +7,7 @@ {% if part.allocated_build_count > 0 %}

Allocated to Part Builds

- +
@@ -26,3 +26,30 @@ {% endif %} {% endblock %} + +{% block js_ready %} + + $("#build-table").bootstrapTable({ + search: true, + sortable: true, + columns: [ + { + title: 'Build', + sortable: true, + }, + { + title: 'Making', + sortable: true, + }, + { + title: 'Allocated', + sortable: false, + }, + { + title: 'Status', + sortable: false, + } + ] + }); + +{% endblock %} diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index 47035a2972..579ef0a0f3 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -45,6 +45,9 @@ } }, columns: [ + { + checkbox: true, + }, { sortable: true, field: 'supplier',
Build Making