Amélioration navigation inventaire prop/non

This commit is contained in:
Jean-Christophe Engel 2024-11-18 12:22:23 +01:00
parent c20be00ea4
commit 6757757f63
5 changed files with 29 additions and 23 deletions

View file

@ -3,7 +3,12 @@
{{:admin_header title="Gestion des matériels" custom_css=$custom_css current="module_equipment"}}
{{* barre de navigation *}}
{{:include file="_nav.html" current="inventaire" subcurrent="proprio"}}
{{if $_GET.prop == null || $_GET.prop}}
{{:assign proprio="proprio"}}
{{else}}
{{:assign proprio="nonproprio"}}
{{/if}}
{{:include file="_nav.html" current="inventaire" subcurrent="%s"|args:$proprio}}
{{if $_GET.ok}}
{{if $_GET.msg == "ajout" }}
@ -24,12 +29,11 @@
{{if $category_keys|count == 0}}
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
{{else}}
{{*
<fieldset>
{{:linkbutton label="Ajouter un nouveau matériel" shape="plus" href="mouvements/ajouter_entree.html" target="_dialog"}}
</fieldset>
*}}
{{:include file="./inventaire.html" print_cat_name=true}}
{{if $_GET.prop == null || $_GET.prop}}
{{:include file="./inventaire.html"}}
{{else}}
{{:include file="./inventaire_nonprop.html"}}
{{/if}}
{{/if}}
{{:admin_footer}}