fix: better view when no accounting periods are active

This commit is contained in:
sinavir 2025-03-17 10:07:03 +01:00 committed by catvayor
parent 4e9cb8497d
commit 528de65ad7
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -13,14 +13,20 @@
<table class="table is-bordered is-striped is-fullwidth">
<thead>
<tr>
<th rowspan="2" >Nom du club</th>
<th{% if accounting_periods|length > 0 %} rowspan="2"{% endif %}>Nom du club</th>
{% if accounting_periods|length > 0 %}
<th colspan="{{ accounting_periods.count }}" >Budget restant</th>
{% endif %}
</tr>
{% for period in accounting_periods %}
{% if forloop.first %}
<tr>
{% for period in accounting_periods %}
{% endif %}
<th>{{ period.name }}</th>
{% endfor %}
{% if forloop.last %}
</tr>
{% endif %}
{% endfor %}
</thead>
<tbody>
{% for club, data in clubs.items %}