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

View File

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