fix: better view when no accounting periods are active
This commit is contained in:
parent
4e9cb8497d
commit
528de65ad7
1 changed files with 9 additions and 3 deletions
|
@ -13,14 +13,20 @@
|
||||||
<table class="table is-bordered is-striped is-fullwidth">
|
<table class="table is-bordered is-striped is-fullwidth">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<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>
|
<th colspan="{{ accounting_periods.count }}" >Budget restant</th>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
{% for period in accounting_periods %}
|
||||||
|
{% if forloop.first %}
|
||||||
<tr>
|
<tr>
|
||||||
{% for period in accounting_periods %}
|
{% endif %}
|
||||||
<th>{{ period.name }}</th>
|
<th>{{ period.name }}</th>
|
||||||
{% endfor %}
|
{% if forloop.last %}
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for club, data in clubs.items %}
|
{% for club, data in clubs.items %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue