Geoffrey-Django/templates/GeoffreyApp/itemlisting_table.html

34 lines
934 B
HTML

<table id="itemlisting_table" class="table table-hover link-table">
<thead class="bg-dark">
<tr>
<th>Item Name</th>
<th>Amount</th>
<th>Price</th>
<th>Price Per Item</th>
{% if show_shop %}
<th>Shop Location</th>
<th>Shop</th>
{% endif %}
</tr>
</thead>
<tbody>
{% for item in itemlisting_list %}
<tr>
<td>{{ item.item_name }} </td>
<td>{{ item.amount }}</td>
<td>{{ item.price }}D</td>
<td>{{ item.normalized_price }}D</td>
{% if show_shop %}
<td>{{ item.shop.location }}</td>
<td>{% include "GeoffreyApp/location_link.html" with loc=item.shop %}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<script>
$(document).ready(function () {
$('#itemlisting_table').DataTable();
});
</script>