Geoffrey-Django/templates/GeoffreyApp/itemlisting_table.html

34 lines
924 B
HTML
Raw Normal View History

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