- {% if build.active %}
-
- {% endif %}
+
{% trans "Completed Build Outputs" %}
@@ -336,6 +348,28 @@ inventreeGet(
{% if build.active %}
loadBuildOutputTable(build_info);
+ linkButtonsToSelection(
+ '#build-output-table',
+ [
+ '#output-options',
+ '#multi-output-complete',
+ ]
+ );
+
+ $('#multi-output-complete').click(function() {
+ var outputs = $('#build-output-table').bootstrapTable('getSelections');
+
+ completeBuildOutputs(
+ build_info.pk,
+ outputs,
+ {
+ success: function() {
+ $('#build-output-table').bootstrapTable('refresh');
+ }
+ }
+ );
+ });
+
{% endif %}
{% for item in build.incomplete_outputs %}
diff --git a/InvenTree/build/templates/build/navbar.html b/InvenTree/build/templates/build/navbar.html
index e4c4fe4e50..de68558d8f 100644
--- a/InvenTree/build/templates/build/navbar.html
+++ b/InvenTree/build/templates/build/navbar.html
@@ -25,10 +25,19 @@
{% endif %}
-
+ {% if not build.is_complete %}
+
-
- {% trans "Build Outputs" %}
+
+ {% trans "In Progress Items" %}
+
+
+ {% endif %}
+
+
+
+
+ {% trans "Completed Items" %}
diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js
index 2515cbc346..7fb10bd743 100644
--- a/InvenTree/templates/js/translated/build.js
+++ b/InvenTree/templates/js/translated/build.js
@@ -423,8 +423,6 @@ function completeBuildOutputs(build_id, outputs, options={}) {
output: pk,
});
output_pk_values.push(pk);
- } else {
- console.log(`Could not find row for ${pk}`);
}
});
@@ -753,6 +751,12 @@ function loadBuildOutputTable(build_info, options={}) {
setupBuildOutputButtonCallbacks();
},
columns: [
+ {
+ title: '',
+ visible: true,
+ checkbox: true,
+ switchable: false,
+ },
{
field: 'part',
title: '{% trans "Part" %}',
diff --git a/InvenTree/templates/js/translated/tables.js b/InvenTree/templates/js/translated/tables.js
index 3138c1e73d..fed7a5d980 100644
--- a/InvenTree/templates/js/translated/tables.js
+++ b/InvenTree/templates/js/translated/tables.js
@@ -56,10 +56,10 @@ function enableButtons(elements, enabled) {
}
+/* Link a bootstrap-table object to one or more buttons.
+ * The buttons will only be enabled if there is at least one row selected
+ */
function linkButtonsToSelection(table, buttons) {
- /* Link a bootstrap-table object to one or more buttons.
- * The buttons will only be enabled if there is at least one row selected
- */
if (typeof table === 'string') {
table = $(table);