mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Bug fix for build detail template (#4412)
- Remove reference to old expand/collapse templates (which no longer exist) - Update tables to use javascript buttons
This commit is contained in:
parent
ed7d2e1262
commit
c46f153449
@ -281,11 +281,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if build.has_tracked_bom_items %}
|
||||
{% include "expand_rows.html" with label="outputs" %}
|
||||
{% include "collapse_rows.html" with label="outputs" %}
|
||||
{% endif %}
|
||||
|
||||
{% include "filter_list.html" with id='incompletebuilditems' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
@ -1217,10 +1217,10 @@ function loadBuildOutputTable(build_info, options={}) {
|
||||
setupBuildOutputButtonCallbacks();
|
||||
},
|
||||
onLoadSuccess: function(rows) {
|
||||
|
||||
updateAllocationData(rows);
|
||||
updateTestResultData(rows);
|
||||
},
|
||||
buttons: constructExpandCollapseButtons(table),
|
||||
columns: [
|
||||
{
|
||||
title: '',
|
||||
@ -1713,6 +1713,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
||||
detailFilter: function(index, row) {
|
||||
return allocatedQuantity(row) > 0;
|
||||
},
|
||||
buttons: constructExpandCollapseButtons(table),
|
||||
detailFormatter: function(index, row, element) {
|
||||
// Contruct an 'inner table' which shows which stock items have been allocated
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user