Fix reports

Add currency report
make reports use json storage
Make tables nicer
This commit is contained in:
Aaron Kimbre
2022-01-16 20:24:47 -06:00
parent 1a5531eb19
commit b2af6d967a
17 changed files with 197 additions and 67 deletions

View File

@@ -11,9 +11,8 @@
{% block content %}
<div class='table-responsive'>
<table class="table table-dark table-striped table-bordered table-hover"
id="two_weeks"
data-order='[[ 1, "asc" ]]'
data-page-length='25'>
id="items_by_date"
data-order='[[ 1, "desc" ]]'>
<thead>
<th scope="col">
Item
@@ -26,16 +25,16 @@
</th>
</thead>
<tbody>
{% for item in items %}
{% for lot, count in data.items() %}
<tr>
<td>
{{ item.item|get_lot_name }}
{{ lot|get_lot_name }}
</td>
<td>
{{ item.count }}
{{ count }}
</td>
<td>
{{ item.item|get_lot_rarity }}
{{ lot|get_lot_rarity }}
</td>
</tr>
{% endfor %}
@@ -44,3 +43,14 @@
</div>
{% endblock %}
{% block js %}
{{ super () }}
<script>
$(document).ready(function(){
let items_by_date = $('#items_by_date').DataTable({
"processing": false,
"serverSide": false,
});
});
</script>
{% endblock %}