2
0
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:
Oliver 2018-05-03 23:39:08 +10:00
parent de176ecac9
commit 68cf6919a7
2 changed files with 31 additions and 1 deletions

View File

@ -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 %}

View File

@ -45,6 +45,9 @@
} }
}, },
columns: [ columns: [
{
checkbox: true,
},
{ {
sortable: true, sortable: true,
field: 'supplier', field: 'supplier',