Reformat statistics template

This commit is contained in:
Alexis Métaireau 2024-12-26 08:46:44 +01:00
parent 5bb311ecc2
commit 13fbeecc43
No known key found for this signature in database
GPG key ID: 1C21B876828E5FF2

View file

@ -1,16 +1,19 @@
{% extends "sidebar_table_layout.html" %} {% extends "sidebar_table_layout.html" %} {% block sidebar %}
{% block sidebar %}
<div id="table_overflow" class="statistics mr-md-n3"> <div id="table_overflow" class="statistics mr-md-n3">
{{ balance_table(show_weight=False, show_header=True) }} {{ balance_table(show_weight=False, show_header=True) }}
</div> </div>
{% endblock %} {% endblock %} {% block content %}
{% block content %}
<div class="d-flex flex-column"> <div class="d-flex flex-column">
<table id="bill_table" class="split_bills table table-striped ml-md-n3"> <table id="bill_table" class="split_bills table table-striped ml-md-n3">
<thead><tr><th class="d-md-none">{{ _("Who?") }}</th><th>{{ _("Paid") }}</th><th>{{ _("Expenses") }}</th><th>{{ _("Transferred") }}</th><th>{{ _("Received") }}</th></tr></thead> <thead>
<tr>
<th class="d-md-none">{{ _("Who?") }}</th>
<th>{{ _("Paid") }}</th>
<th>{{ _("Expenses") }}</th>
<th>{{ _("Transferred") }}</th>
<th>{{ _("Received") }}</th>
</tr>
</thead>
<tbody> <tbody>
{% for stat in members_stats|sort(attribute='member.name') %} {% for stat in members_stats|sort(attribute='member.name') %}
<tr> <tr>
@ -25,7 +28,12 @@
</table> </table>
<h2>{{ _("Expenses by month") }}</h2> <h2>{{ _("Expenses by month") }}</h2>
<table id="monthly_stats" class="table table-striped"> <table id="monthly_stats" class="table table-striped">
<thead><tr><th>{{ _("Period") }}</th><th>{{ _("Expenses") }}</th></tr></thead> <thead>
<tr>
<th>{{ _("Period") }}</th>
<th>{{ _("Expenses") }}</th>
</tr>
</thead>
<tbody> <tbody>
{% for month in months %} {% for month in months %}
<tr> <tr>