fix: better view when no accounting periods are active
This commit is contained in:
parent
62dd0fdd91
commit
1aa9d93f47
1 changed files with 9 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue