mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Updated part views
- Allocation table now uses bootstrap-table - Added checkbox column to supplier table (no function yet)
This commit is contained in:
parent
de176ecac9
commit
68cf6919a7
@ -7,7 +7,7 @@
|
||||
|
||||
{% if part.allocated_build_count > 0 %}
|
||||
<h4>Allocated to Part Builds</h4>
|
||||
<table class='table table-striped'>
|
||||
<table class='table table-striped table-condensed' id='build-table'>
|
||||
<tr>
|
||||
<th>Build</th>
|
||||
<th>Making</th>
|
||||
@ -26,3 +26,30 @@
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_ready %}
|
||||
|
||||
$("#build-table").bootstrapTable({
|
||||
search: true,
|
||||
sortable: true,
|
||||
columns: [
|
||||
{
|
||||
title: 'Build',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
title: 'Making',
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
title: 'Allocated',
|
||||
sortable: false,
|
||||
},
|
||||
{
|
||||
title: 'Status',
|
||||
sortable: false,
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
{% endblock %}
|
||||
|
@ -45,6 +45,9 @@
|
||||
}
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
checkbox: true,
|
||||
},
|
||||
{
|
||||
sortable: true,
|
||||
field: 'supplier',
|
||||
|
Loading…
Reference in New Issue
Block a user