Début réorganisation navigation ; inventaire : ajout filtre selon appartenance

This commit is contained in:
Jean-Christophe Engel 2026-01-16 12:14:09 +01:00
parent feef51361e
commit e2c8ac2d84
3 changed files with 84 additions and 38 deletions

View file

@ -14,15 +14,6 @@
{{else}}
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
{{if $_GET.prop == null || $_GET.prop}}
{{:assign proprio="proprio"}}
{{else}}
{{:assign proprio="nonproprio"}}
{{/if}}
{{#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" }}
<p class="block confirm">Ajout effectué</p>
@ -37,14 +28,13 @@
<p class="block error">Modification refusée</p>
{{/if}}
{{#load type="category" count=true limit=1 assign="result"}}{{/load}}
{{:include file="_nav.html" current="inventaire" cat="%d"|args:$result.count subcurrent="stock"}}
{{if $result.count == 0}}
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
{{else}}
{{if $_GET.prop == null || $_GET.prop == "1"}}
{{:include file="./_inventory.html"}}
{{else}}
{{:include file="./_temp_inventory.html"}}
{{/if}}
{{:include file="./_inventory.html"}}
{{/if}}
{{:admin_footer}}