Geoffrey-Django/GeoffreyApp/templates/GeoffreyApp/itemlisting_table.html

34 lines
924 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</th>
<th>Shop Location</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><a href="{{ item.shop.link }}">{{ item.shop.name }}</a></td>
<td>{{ item.shop.position }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
<script>
$(document).ready(function () {
$('#itemlisting_table').DataTable();
});
</script>