Mise en place gestion accès aux pages

This commit is contained in:
Jean-Christophe Engel 2025-12-03 10:47:43 +01:00
parent cefc3e824d
commit 63775189da
31 changed files with 94 additions and 31 deletions

View file

@ -1,9 +1,6 @@
{{* -*- brindille -*- *}}
{{* barre de navigation *}}
{{if ! $dialog}}
{{:include file="../_nav.html" current="config" subcurrent="categories"}}
{{/if}}
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
{{* Traiter l'envoi du formulaire *}}
{{#form on="save"}}
@ -25,6 +22,11 @@
{{/form}}
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
{{* barre de navigation *}}
{{if ! $dialog}}
{{:include file="../_nav.html" current="config" subcurrent="categories"}}
{{/if}}
{{:form_errors}}
{{* formulaire d'ajout de catégorie *}}

View file

@ -1,5 +1,7 @@
{{* -*- brindille -*- *}}
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
{{#load key=$_GET.key assign="category"}}
{{else}}
{{:error message="Catégorie introuvable"}}

View file

@ -1,5 +1,7 @@
{{* -*- brindille -*- *}}
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
{{:admin_header title="Configuration" current="module_equipment"}}
{{* barre de navigation *}}

View file

@ -1,5 +1,7 @@
{{* -*- brindille -*- *}}
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
{{#load key=$_GET.key assign="category"}}
{{else}}
{{:error message="Catégorie introuvable"}}