mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Improve table rendering for build allocation view
This commit is contained in:
parent
38001b5358
commit
73b9881dc5
@ -62,7 +62,10 @@ InvenTree | Allocate Parts
|
|||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
$("#build-list").bootstrapTable({});
|
$("#build-list").bootstrapTable({
|
||||||
|
search: true,
|
||||||
|
sortable: true,
|
||||||
|
});
|
||||||
|
|
||||||
$("#btn-allocate").click(function() {
|
$("#btn-allocate").click(function() {
|
||||||
location.href = "{% url 'build-allocate' build.id %}?edit=1";
|
location.href = "{% url 'build-allocate' build.id %}?edit=1";
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
<table class='table table-striped table-condensed' id='build-list' data-sorting='true' data-toolbar='#build-item-toolbar'>
|
<table class='table table-striped table-condensed' id='build-list' data-sorting='true' data-toolbar='#build-item-toolbar'>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Part</th>
|
<th data-sortable='true'>Part</th>
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
<th>Available</th>
|
<th data-sortable='true'>Available</th>
|
||||||
<th>On Order</th>
|
<th data-sortable='true'>Required</th>
|
||||||
<th>Required</th>
|
<th data-sortable='true'>Allocated</th>
|
||||||
<th>Allocated</th>
|
<th data-sortable='true'>On Order</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -27,9 +27,9 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ item.part.description }}</td>
|
<td>{{ item.part.description }}</td>
|
||||||
<td>{{ item.part.total_stock }}</td>
|
<td>{{ item.part.total_stock }}</td>
|
||||||
<td>{{ item.part.on_order }}</td>
|
|
||||||
<td>{{ item.quantity }}</td>
|
<td>{{ item.quantity }}</td>
|
||||||
<td>{{ item.allocated }}</td>
|
<td>{{ item.allocated }}</td>
|
||||||
|
<td>{{ item.part.on_order }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user