mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Improve table formatting when no allocation items found
This commit is contained in:
parent
7c11d917de
commit
ad1d75c259
@ -36,6 +36,7 @@
|
||||
|
||||
loadAllocationTable(
|
||||
$("#allocate-table-id-{{ bom_item.sub_part.id }}"),
|
||||
"{{ bom_item.sub_part.name }}",
|
||||
"{% url 'api-build-item-list' %}?build={{ build.id }}&part={{ bom_item.sub_part.id }}",
|
||||
$("#new-item-{{ bom_item.sub_part.id }}")
|
||||
);
|
||||
|
@ -122,6 +122,10 @@
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.panel-group {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
}
|
||||
|
@ -1,9 +1,10 @@
|
||||
function loadAllocationTable(table, url, button) {
|
||||
function loadAllocationTable(table, part, url, button) {
|
||||
|
||||
// Load the allocation table
|
||||
table.bootstrapTable({
|
||||
url: url,
|
||||
sortable: false,
|
||||
formatNoMatches: function() { return 'No parts allocated for ' + part; },
|
||||
columns: [
|
||||
{
|
||||
field: 'stock_item_detail',
|
||||
|
Loading…
Reference in New Issue
Block a user