mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +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 %}
|
{% if part.allocated_build_count > 0 %}
|
||||||
<h4>Allocated to Part Builds</h4>
|
<h4>Allocated to Part Builds</h4>
|
||||||
<table class='table table-striped'>
|
<table class='table table-striped table-condensed' id='build-table'>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Build</th>
|
<th>Build</th>
|
||||||
<th>Making</th>
|
<th>Making</th>
|
||||||
@ -26,3 +26,30 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endblock %}
|
{% 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: [
|
columns: [
|
||||||
|
{
|
||||||
|
checkbox: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: 'supplier',
|
field: 'supplier',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user