NexusDash-izebra/app/templates/reports/items/by_date.html.j2

57 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-01-16 18:22:00 +00:00
{% extends 'base.html.j2' %}
{% block title %}
Items on {{ date }}
{% endblock title %}
{% block content_before %}
Items on {{ date }}
{% endblock content_before %}
{% block content %}
<div class='table-responsive'>
<table class="table table-dark table-striped table-bordered table-hover"
id="items_by_date"
data-order='[[ 1, "desc" ]]'>
2022-01-16 18:22:00 +00:00
<thead>
<th scope="col">
Item
</th>
<th scope="col">
Count
</th>
<th scope="col">
Rarity
</th>
</thead>
<tbody>
{% for lot, count in data.items() %}
2022-01-16 18:22:00 +00:00
<tr>
<td>
{{ lot|get_lot_name }}
2022-01-16 18:22:00 +00:00
</td>
<td>
{{ count }}
2022-01-16 18:22:00 +00:00
</td>
<td>
{{ lot|get_lot_rarity }}
2022-01-16 18:22:00 +00:00
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}
{% block js %}
{{ super () }}
<script>
$(document).ready(function(){
let items_by_date = $('#items_by_date').DataTable({
"processing": false,
"serverSide": false,
});
});
</script>
{% endblock %}