diff --git a/categories/delete_category.html b/categories/delete_category.html index a2c5dfc..b0ab888 100644 --- a/categories/delete_category.html +++ b/categories/delete_category.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Supprimer une catégorie" current="module_equipment"}} {{#load key=$_GET.key assign="category"}} diff --git a/categories/index.html b/categories/index.html index 8964d3a..30591ff 100644 --- a/categories/index.html +++ b/categories/index.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="read" block=true}}{{/restrict}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} diff --git a/categories/list_equipment.html b/categories/list_equipment.html index 245a14b..90a67f3 100644 --- a/categories/list_equipment.html +++ b/categories/list_equipment.html @@ -1,5 +1,3 @@ -{{#restrict section="accounting" level="read" block=true}}{{/restrict}} - {{#load key=$_GET.key}} {{:assign cat_name=$name}} {{/load}} diff --git a/categories/modify_category.html b/categories/modify_category.html index a94da6c..9522111 100644 --- a/categories/modify_category.html +++ b/categories/modify_category.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Modifier une catégorie" current="module_equipment"}} {{#load key=$_GET.key assign="category"}} diff --git a/config.html b/config.html index 342147a..4d395eb 100644 --- a/config.html +++ b/config.html @@ -1,4 +1,3 @@ -{{#restrict section="config" level="admin" block=true}}{{/restrict}} {{:admin_header title="Configuration" current="module_equipment"}} {{* barre de navigation *}} diff --git a/historique.html b/historique.html index 7823e3b..246937d 100644 --- a/historique.html +++ b/historique.html @@ -1,5 +1,3 @@ -{{#restrict section="accounting" level="read"}}{{/restrict}} - {{:assign equipment_key=$_GET.key|trim}} {{#load key=$_GET.key assign="equipment"}} {{else}} diff --git a/inventaire.html b/inventaire.html index b44a36f..9f14a2e 100644 --- a/inventaire.html +++ b/inventaire.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="read"}}{{/restrict}} {{* inventaire des entrées/sorties des matériels des catégories de la variable category_keys *}} {{* Extraire et compiler les infos de la base *}} diff --git a/modifier_materiel.html b/modifier_materiel.html index e44fce9..e81099d 100644 --- a/modifier_materiel.html +++ b/modifier_materiel.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block="true"}}{{/restrict}} {{:admin_header title="Modifier matériel" current="module_equipment"}} {{:assign equipment_key=$_GET.key|trim}} diff --git a/mouvements/entrees/delete_entree.html b/mouvements/entrees/delete_entree.html index a628b53..b098cae 100644 --- a/mouvements/entrees/delete_entree.html +++ b/mouvements/entrees/delete_entree.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Supprimer une entrée" current="module_equipment"}} {{* récupérer les infos du mouvement à supprimer et du matériel associé *}} diff --git a/mouvements/entrees/index.html b/mouvements/entrees/index.html index 051b3b6..a76864e 100644 --- a/mouvements/entrees/index.html +++ b/mouvements/entrees/index.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="read" block=true}}{{/restrict}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} diff --git a/mouvements/entrees/non_repertorie.html b/mouvements/entrees/non_repertorie.html index b923ff0..6ca311f 100644 --- a/mouvements/entrees/non_repertorie.html +++ b/mouvements/entrees/non_repertorie.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Entrée de matériel" current="module_equipment"}} {{* barre de navigation *}} diff --git a/mouvements/entrees/repertorie.html b/mouvements/entrees/repertorie.html index b922d11..484d5cb 100644 --- a/mouvements/entrees/repertorie.html +++ b/mouvements/entrees/repertorie.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Entrée de matériel" current="module_equipment"}} {{* barre de navigation *}} diff --git a/mouvements/entrees/retour.html b/mouvements/entrees/retour.html index 85f49d4..7559dd4 100644 --- a/mouvements/entrees/retour.html +++ b/mouvements/entrees/retour.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Entrée de matériel" current="module_equipment"}} {{* barre de navigation *}} diff --git a/mouvements/modifier_mouvement.html b/mouvements/modifier_mouvement.html index a9bb844..28ebcbc 100644 --- a/mouvements/modifier_mouvement.html +++ b/mouvements/modifier_mouvement.html @@ -1,4 +1,3 @@ -{{#restrict section="config" level="admin" block=true}}{{/restrict}} {{:admin_header title="Modifier une %s"|args:$_GET.direction current="module_equipment"}} {{:assign direction=$_GET.direction}} @@ -20,8 +19,6 @@ {{:assign date_init=$mvt_modif.date|date_short}} {{:assign key_eqpmt_init=$mvt_modif.equipment}} -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} - {{* récupérer la config des entrées/sorties *}} {{:include file="../_get_config.html" keep="config"}} diff --git a/mouvements/sorties/delete_sortie.html b/mouvements/sorties/delete_sortie.html index 4d2485a..37e316a 100644 --- a/mouvements/sorties/delete_sortie.html +++ b/mouvements/sorties/delete_sortie.html @@ -1,4 +1,3 @@ - {{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Supprimer une sortie" current="module_equipment"}} {{* récupérer les infos du mouvement à supprimer et du matériel associé *}} diff --git a/mouvements/sorties/emprunte.html b/mouvements/sorties/emprunte.html index 3576a36..9bda552 100644 --- a/mouvements/sorties/emprunte.html +++ b/mouvements/sorties/emprunte.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="read"}}{{/restrict}} {{:admin_header title="Sortie de matériel" current="module_equipment"}} {{if ! $dialog}} diff --git a/mouvements/sorties/index.html b/mouvements/sorties/index.html index 21dc70c..04dd719 100644 --- a/mouvements/sorties/index.html +++ b/mouvements/sorties/index.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="read"}}{{/restrict}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} diff --git a/mouvements/sorties/stock_disponible.html b/mouvements/sorties/stock_disponible.html index abe7f04..5ff4d68 100644 --- a/mouvements/sorties/stock_disponible.html +++ b/mouvements/sorties/stock_disponible.html @@ -1,4 +1,3 @@ -{{#restrict section="accounting" level="write" block=true}}{{/restrict}} {{:admin_header title="Sortie de matériel" current="module_equipment"}} {{if ! $dialog}}