Bouton Ajouter catégorie sur page inventaire si aucune catégorie

This commit is contained in:
Jean-Christophe Engel 2025-01-22 14:51:03 +01:00
parent f2a9cb6af6
commit 42d85fb528
2 changed files with 10 additions and 4 deletions

View file

@ -8,7 +8,9 @@
{{else}}
{{:assign proprio="nonproprio"}}
{{/if}}
{{:include file="_nav.html" current="inventaire" subcurrent="%s"|args:$proprio}}
{{#load type="category" count=true assign="result"}}{{/load}}
{{:include file="_nav.html" current="inventaire" cat="%d"|args:$result.count subcurrent="%s"|args:$proprio}}
{{if $_GET.ok}}
{{if $_GET.msg == "ajout" }}
@ -22,8 +24,6 @@
<p class="block error">Modification refusée</p>
{{/if}}
{{#load type="category" count=true assign="result"}}{{/load}}
{{if $result.count == 0}}
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
{{else}}