Stock tables now searchable

This commit is contained in:
Oliver 2018-05-01 09:04:52 +10:00
parent 7c3b1f9bb4
commit f337291db8
2 changed files with 7 additions and 7 deletions

View File

@ -9,14 +9,14 @@
{% include "stock/location_list.html" with locations=locations %}
{% endif %}
<table class="table table-striped" id='stock-table' data-sorting='true'>
<table class="table table-striped" id='stock-table' data-filtering='true' data-sorting='true'>
<thead>
<tr>
<th>Part</th>
<th>Location</th>
<th>Stock</th>
<th data-type='number'>Stock</th>
<th>Status</th>
<th>Stocktake</th>
<th data-type='date'>Stocktake</th>
<th data-sortable='false'></th>
</tr>
</thead>
@ -32,7 +32,7 @@
{% endif %}
</td>
<td>{{ item.quantity }}</td>
<td>{{ item.status }}</td>
<td>{{ item.get_status_display }}</td>
<td>{{ item.stocktake_date }}</td>
<td><a href="{% url 'stock-item-detail' item.id %}">Click</a></td>
</tr>

View File

@ -1,8 +1,8 @@
<table class="table table-striped" id='stock-table' data-sorting='true'>
<table class="table table-striped" id='stock-table' data-filtering='true' data-sorting='true'>
<thead>
<tr>
<th>Part</th>
<th>Stock</th>
<th data-type='number'>Stock</th>
<th>Status</th>
<th>Stocktake</th>
<th data-sortable='false'></th>
@ -13,7 +13,7 @@
<tr>
<td><a href="{% url 'part-stock' item.part.id %}">{{ item.part.name }}</a></td>
<td>{{ item.quantity }}</td>
<td>{{ item.status }}</td>
<td>{{ item.get_status_display }}</td>
<td>{{ item.stocktake_date }}</td>
<td><a href="{% url 'stock-item-detail' item.id %}">Click</a></td>
</tr>