Amélioration présentation onglet Autres si vide

This commit is contained in:
Jean-Christophe Engel 2025-06-03 08:54:07 +02:00
parent ceafe9157d
commit 757ac7d5ce

View file

@ -4,6 +4,7 @@
<section class="immobilisation">
<h2 class="ruler">Autres immobilisations</h2>
{{:assign nb_immo=0}}
<table class="list">
<thead>
@ -96,6 +97,7 @@
{{if $ignore}}
{{:continue}}
{{/if}}
{{:assign nb_immo="%d+1"|math:$nb_immo}}
<tr>
<td class="num"><a href={{$trans_url}}>#{{$trans_id}}</a></td>
@ -130,4 +132,7 @@
{{/select}}
</tbody>
</table>
{{if $nb_immo == 0}}
<p class="block alert">Aucune immobilisation</p>
{{/if}}
</section>