mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +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>
|
</ul>
|
||||||
</div>
|
</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' %}
|
{% include "filter_list.html" with id='incompletebuilditems' %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1217,10 +1217,10 @@ function loadBuildOutputTable(build_info, options={}) {
|
|||||||
setupBuildOutputButtonCallbacks();
|
setupBuildOutputButtonCallbacks();
|
||||||
},
|
},
|
||||||
onLoadSuccess: function(rows) {
|
onLoadSuccess: function(rows) {
|
||||||
|
|
||||||
updateAllocationData(rows);
|
updateAllocationData(rows);
|
||||||
updateTestResultData(rows);
|
updateTestResultData(rows);
|
||||||
},
|
},
|
||||||
|
buttons: constructExpandCollapseButtons(table),
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '',
|
title: '',
|
||||||
@ -1713,6 +1713,7 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
|
|||||||
detailFilter: function(index, row) {
|
detailFilter: function(index, row) {
|
||||||
return allocatedQuantity(row) > 0;
|
return allocatedQuantity(row) > 0;
|
||||||
},
|
},
|
||||||
|
buttons: constructExpandCollapseButtons(table),
|
||||||
detailFormatter: function(index, row, element) {
|
detailFormatter: function(index, row, element) {
|
||||||
// Contruct an 'inner table' which shows which stock items have been allocated
|
// Contruct an 'inner table' which shows which stock items have been allocated
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user