diff --git a/_calcul_dispo.html b/_calcul_dispo.html index 646ebbd..35aeeba 100644 --- a/_calcul_dispo.html +++ b/_calcul_dispo.html @@ -85,7 +85,7 @@ {{/if}} {{* récupérer la config des entrées/sorties *}} - {{:include file="/%s/_get_config.html"|args:$module.name keep="config"}} + {{:include file="./_get_config.html" keep="config"}} {{if $direction === 'entrée'}} {{* chercher le type d'entrée parmi les types de la config *}} diff --git a/_get_config.html b/_get_config.html index 95304cf..c8d17f4 100644 --- a/_get_config.html +++ b/_get_config.html @@ -4,7 +4,7 @@ *}} {{* config par défaut *}} -{{:read file="/%s/defaut.json"|args:$module.name assign="config_defaut"}} +{{:read file="./defaut.json" assign="config_defaut"}} {{:assign config_defaut=$config_defaut|json_decode}} {{if $module.config.inputNature != null}} diff --git a/categories/index.html b/categories/index.html index 12f66a6..c1b977c 100644 --- a/categories/index.html +++ b/categories/index.html @@ -2,7 +2,7 @@ {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} -{{:include file="/%s/_nav.html"|args:$module.name current="categories"}} +{{:include file="../_nav.html" current="categories"}} {{if $_GET.ok}}
{{$_GET.msg}}
diff --git a/categories/list_equipment.html b/categories/list_equipment.html index 56dc829..d2dae21 100644 --- a/categories/list_equipment.html +++ b/categories/list_equipment.html @@ -8,7 +8,7 @@ {{if $_GET.dialog === null}} {{* barre de navigation *}} - {{:include file="/%s/_nav.html"|args:$module.name current="categories"}} + {{:include file="../_nav.html" current="categories"}} {{else}}Configuration enregistrée.
@@ -20,7 +20,7 @@ {{/form}} {{* config par défaut *}} -{{:read file="/%s/defaut.json"|args:$module.name assign="config_defaut"}} +{{:read file="./defaut.json" assign="config_defaut"}} {{:assign config_defaut=$config_defaut|json_decode}} {{* types d'entrées *}} diff --git a/index.html b/index.html index f292250..9649d92 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ {{:admin_header title="Gestion des matériels" custom_css=$custom_css current="module_equipment"}} {{* barre de navigation *}} -{{:include file="/%s/_nav.html"|args:$module.name current="index"}} +{{:include file="_nav.html" current="index"}} {{#select key diff --git a/mouvements/entrees/delete_entree.html b/mouvements/entrees/delete_entree.html index 5f275dd..0cd0491 100644 --- a/mouvements/entrees/delete_entree.html +++ b/mouvements/entrees/delete_entree.html @@ -19,7 +19,7 @@ {{#form on="delete"}} {{* récupérer la config des entrées/sorties *}} - {{:include file="/%s/_get_config.html"|args:$module.name keep="config"}} + {{:include file="../../_get_config.html" keep="config"}} {{* vérifier s'il est possible de supprimer l'entrée *}} {{:assign dispo=0}} diff --git a/mouvements/entrees/index.html b/mouvements/entrees/index.html index 9818b16..9e5d97d 100644 --- a/mouvements/entrees/index.html +++ b/mouvements/entrees/index.html @@ -2,7 +2,7 @@ {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} -{{:include file="/%s/_nav.html"|args:$module.name current="entrees"}} +{{:include file="../../_nav.html" current="entrees"}} {{if $_GET.ok}}{{$_GET.msg}}
diff --git a/mouvements/entrees/non_repertorie.html b/mouvements/entrees/non_repertorie.html index 6e2340b..de923bc 100644 --- a/mouvements/entrees/non_repertorie.html +++ b/mouvements/entrees/non_repertorie.html @@ -3,7 +3,7 @@ {{if $_GET.dialog === null}} {{* barre de navigation *}} - {{:include file="/%s/_nav.html"|args:$module.name current="entrees"}} + {{:include file="../../_nav.html" current="entrees"}} {{else}}{{$_GET.msg}}
diff --git a/mouvements/sorties/stock_disponible.html b/mouvements/sorties/stock_disponible.html index cd406d6..2399847 100644 --- a/mouvements/sorties/stock_disponible.html +++ b/mouvements/sorties/stock_disponible.html @@ -3,7 +3,7 @@ {{if $_GET.dialog === null}} {{* barre de navigation *}} - {{:include file="/%s/_nav.html"|args:$module.name current="sorties"}} + {{:include file="../../_nav.html" current="sorties"}} {{else}}