mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Reformat statistics template
This commit is contained in:
parent
5bb311ecc2
commit
13fbeecc43
1 changed files with 46 additions and 38 deletions
|
@ -1,16 +1,19 @@
|
|||
{% extends "sidebar_table_layout.html" %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% extends "sidebar_table_layout.html" %} {% block sidebar %}
|
||||
<div id="table_overflow" class="statistics mr-md-n3">
|
||||
{{ balance_table(show_weight=False, show_header=True) }}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
{% endblock %} {% block content %}
|
||||
<div class="d-flex flex-column">
|
||||
<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>
|
||||
{% for stat in members_stats|sort(attribute='member.name') %}
|
||||
<tr>
|
||||
|
@ -25,7 +28,12 @@
|
|||
</table>
|
||||
<h2>{{ _("Expenses by month") }}</h2>
|
||||
<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>
|
||||
{% for month in months %}
|
||||
<tr>
|
||||
|
|
Loading…
Reference in a new issue