From a1eeeab64c1c0b143b7ef3c68e1f6f1b8c539571 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 4 May 2018 01:39:20 +1000 Subject: [PATCH] Build table now bootstrap-table'd --- InvenTree/build/templates/build/index.html | 30 ++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/InvenTree/build/templates/build/index.html b/InvenTree/build/templates/build/index.html index 8d69d5b037..2e3d7993bf 100644 --- a/InvenTree/build/templates/build/index.html +++ b/InvenTree/build/templates/build/index.html @@ -4,7 +4,7 @@

Part Builds

- +
@@ -32,7 +32,7 @@ {% endblock %} {% block js_ready %} - + $("#new-build").click(function() { launchModalForm("#modal-form", "{% url 'build-create' %}", @@ -41,4 +41,30 @@ }); }); + $("#build-table").bootstrapTable({ + sortable: true, + search: true, + columns: [ + { + field: 'name', + title: 'Build', + sortable: true, + }, + { + field: 'part', + title: 'Part', + sortable: true, + }, + { + title: 'Quantity', + sortable: true, + searchable: false + }, + { + title: 'Status', + sortable: true, + } + ] + }); + {% endblock %} \ No newline at end of file
Build