diff --git a/archives.html b/archives.html index 087ac1c..4e2f97f 100644 --- a/archives.html +++ b/archives.html @@ -1,5 +1,7 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{:admin_header title="Matériels archivés" current="module_equipment"}} {{:include file="_nav.html" current="archives"}} diff --git a/categories/add_category.html b/categories/add_category.html index 20691ae..0fe45c8 100644 --- a/categories/add_category.html +++ b/categories/add_category.html @@ -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 *}} diff --git a/categories/delete_category.html b/categories/delete_category.html index 7430344..7838f41 100644 --- a/categories/delete_category.html +++ b/categories/delete_category.html @@ -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"}} diff --git a/categories/index.html b/categories/index.html index 0eb43d0..d021953 100644 --- a/categories/index.html +++ b/categories/index.html @@ -1,5 +1,7 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{:admin_header title="Configuration" current="module_equipment"}} {{* barre de navigation *}} diff --git a/categories/modify_category.html b/categories/modify_category.html index 9d2d315..0819a78 100644 --- a/categories/modify_category.html +++ b/categories/modify_category.html @@ -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"}} diff --git a/config.html b/config.html index d7661ab..9927c5e 100644 --- a/config.html +++ b/config.html @@ -1,5 +1,7 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{:admin_header title="Configuration" current="module_equipment"}} {{* barre de navigation *}} diff --git a/config/add_movement_type.html b/config/add_movement_type.html index 226311f..06881dc 100644 --- a/config/add_movement_type.html +++ b/config/add_movement_type.html @@ -1,15 +1,12 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{* paramètres : - dir : input ou output *}} -{{* barre de navigation *}} -{{if ! $dialog}} - {{:include file="../_nav.html" current="config" subcurrent="typesES"}} -{{/if}} - {{* Traiter l'envoi du formulaire *}} {{* lecture config *}} @@ -51,6 +48,11 @@ {{/form}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} +{{* barre de navigation *}} +{{if ! $dialog}} + {{:include file="../_nav.html" current="config" subcurrent="typesES"}} +{{/if}} + {{:form_errors}} {{if $_GET.dir == 'input'}} diff --git a/config/delete_movement_type.html b/config/delete_movement_type.html index 9e889ab..4f0ddaa 100644 --- a/config/delete_movement_type.html +++ b/config/delete_movement_type.html @@ -1,15 +1,13 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{* paramètres : - dir : input ou output - op_key : clé du type de mouvement à supprimer *}} -{{* barre de navigation *}} -{{if ! $dialog}} - {{:include file="../_nav.html" current="config" subcurrent="typesES"}} -{{/if}} {{* lecture config (défaut ou enregistrée) *}} {{:include file="../_get_config.html" keep="config, directions"}} @@ -37,6 +35,10 @@ {{/form}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} +{{* barre de navigation *}} +{{if ! $dialog}} + {{:include file="../_nav.html" current="config" subcurrent="typesES"}} +{{/if}} {{:form_errors}} {{:assign var="mvt_label" from="config.%s_nature.%s.label"|args:$_GET.dir:$_GET.op_key}} diff --git a/config/misc.html b/config/misc.html index 6c36be2..d49ef65 100644 --- a/config/misc.html +++ b/config/misc.html @@ -1,5 +1,7 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{:admin_header title="Configuration" current="module_equipment"}} {{#form on="save"}} diff --git a/config/modify_movement_type.html b/config/modify_movement_type.html index b5210c3..89d9970 100644 --- a/config/modify_movement_type.html +++ b/config/modify_movement_type.html @@ -1,16 +1,13 @@ {{* -*- brindille -*- *}} +{{#restrict block=true section="accounting" level="write"}}{{/restrict}} + {{* paramètres : - dir : input ou output - op_key : clé du type de mouvement dont on veut modifier le libellé *}} -{{* barre de navigation *}} -{{if ! $dialog}} - {{:include file="../_nav.html" current="config" subcurrent="typesES"}} -{{/if}} - {{* lecture config (défaut ou enregistrée) *}} {{:include file="../_get_config.html" keep="config, directions"}} @@ -43,7 +40,12 @@ {{/form}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} +{{* barre de navigation *}} +{{if ! $dialog}} + {{:include file="../_nav.html" current="config" subcurrent="typesES"}} +{{/if}} {{:form_errors}} + {{:assign var="default_label" from="config.%s_nature.%s.label"|args:$_GET.dir:$_GET.op_key}}