Suppression chemins absolus
This commit is contained in:
parent
c70668831c
commit
6b6a54c357
|
@ -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 *}}
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
<p class="block confirm">{{$_GET.msg}}</p>
|
||||
|
|
|
@ -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}}
|
||||
<header class="header">
|
||||
<h1>Matériels de la catégorie « {{$cat_name}} »</h1>
|
||||
|
@ -16,6 +16,6 @@
|
|||
{{/if}}
|
||||
|
||||
{{:assign var="categories." value=$_GET.key}}
|
||||
{{:include file="/%s/inventaire.html"|args:$module.name}}
|
||||
{{:include file="../inventaire.html"}}
|
||||
|
||||
{{:admin_footer}}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{{:admin_header title="Configuration" current="module_equipment"}}
|
||||
|
||||
{{* barre de navigation *}}
|
||||
{{:include file="/%s/_nav.html"|args:$module.name current="config"}}
|
||||
{{:include file="_nav.html" current="config"}}
|
||||
|
||||
{{if $_GET.ok}}
|
||||
<p class="block confirm">Configuration enregistrée.</p>
|
||||
|
@ -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 *}}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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}}
|
||||
<p class="block confirm">{{$_GET.msg}}</p>
|
||||
|
|
|
@ -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}}
|
||||
<header class="header">
|
||||
<h1>Entrée de matériel</h1>
|
||||
|
@ -11,7 +11,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"}}
|
||||
|
||||
{{* types d'entrées *}}
|
||||
{{#foreach from=$config.inputNature item="elem"}}
|
||||
|
@ -38,7 +38,7 @@
|
|||
{{* enregistrer un nouveau matériel *}}
|
||||
{{:save
|
||||
key=$equipment_key
|
||||
validate_schema="/%s/equipment.schema.json"|args:$module.name
|
||||
validate_schema="../../equipment.schema.json"
|
||||
type="equipment"
|
||||
category=$category.key
|
||||
designation=$_POST.designation|trim
|
||||
|
@ -51,7 +51,7 @@
|
|||
|
||||
{{:save
|
||||
key=$mvt_key
|
||||
validate_schema="/%s/mouvements/movement.schema.json"|args:$module.name
|
||||
validate_schema="../movement.schema.json"
|
||||
type="movement"
|
||||
direction="entrée"
|
||||
inputNature=$operation
|
||||
|
|
|
@ -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}}
|
||||
<header class="header">
|
||||
<h1>Entrée de matériel</h1>
|
||||
|
@ -11,7 +11,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"}}
|
||||
|
||||
{{* types d'entrées *}}
|
||||
{{#foreach from=$config.inputNature item="elem"}}
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
{{:save
|
||||
key=$mvt_key
|
||||
validate_schema="/%s/mouvements/movement.schema.json"|args:$module.name
|
||||
validate_schema="../movement.schema.json"
|
||||
type="movement"
|
||||
direction="entrée"
|
||||
inputNature=$operation
|
||||
|
|
|
@ -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}}
|
||||
<header class="header">
|
||||
<h1>Entrée de matériel</h1>
|
||||
|
@ -11,7 +11,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"}}
|
||||
|
||||
{{* types d'entrées *}}
|
||||
{{#foreach from=$config.inputNature item="elem"}}
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
{{:include
|
||||
file="/%s/_calcul_dispo.html"|args:$module.name
|
||||
file="../../_calcul_dispo.html"
|
||||
keep="equipments"
|
||||
date=$_POST.date|parse_date
|
||||
}}
|
||||
|
@ -48,7 +48,7 @@
|
|||
|
||||
{{:save
|
||||
key=$mvt_key
|
||||
validate_schema="/%s/mouvements/movement.schema.json"|args:$module.name
|
||||
validate_schema="../movement.schema.json"
|
||||
type="movement"
|
||||
direction="entrée"
|
||||
inputNature=$operation
|
||||
|
@ -64,7 +64,7 @@
|
|||
{{/form}}
|
||||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
|
||||
{{:include file="../../_calcul_dispo.html" keep="equipments"}}
|
||||
|
||||
{{if $equipments !== null}}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{{#restrict section="accounting" level="write" block=true}}{{/restrict}}
|
||||
|
||||
{{* 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"}}
|
||||
{{* types d'entrées *}}
|
||||
|
@ -138,12 +138,11 @@
|
|||
« {{$mvt_modif.outputNature}} de {{$eqpmt.designation}} (qté : {{$mvt_modif.amount}}) à la date du {{$mvt_modif.date|date_short}} »
|
||||
{{/if}}
|
||||
</p>
|
||||
{{* :redirect force="./index.html?err=1&msg=Modification demandée impossible" *}}
|
||||
{{else}}
|
||||
{{* vérification réussie : modifier le mouvement *}}
|
||||
{{:save
|
||||
key=$key_mvt
|
||||
validate_schema="/%s/mouvements/movement.schema.json"|args:$module.name
|
||||
validate_schema="./movement.schema.json"
|
||||
type="movement"
|
||||
direction=$direction
|
||||
inputNature=$mvt_modif.inputNature
|
||||
|
|
|
@ -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"}}
|
||||
|
||||
{{* déterminer s'il s'agit d'une sortie temporaire *}}
|
||||
{{:assign temporaire=false}}
|
||||
|
|
|
@ -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}}
|
||||
<header class="header">
|
||||
<h1>Sortie de matériel</h1>
|
||||
|
@ -11,7 +11,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"}}
|
||||
|
||||
{{* types de sorties *}}
|
||||
{{#foreach from=$config.outputNature item="elem"}}
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
{{:include
|
||||
file="/%s/_calcul_dispo.html"|args:$module.name
|
||||
file="../../_calcul_dispo.html"
|
||||
keep="equipments"
|
||||
date=$_POST.date|parse_date
|
||||
}}
|
||||
|
@ -48,7 +48,7 @@
|
|||
{{:assign var="operation" from="types_sorties.%d|args:$_POST.type_operation}}
|
||||
{{:save
|
||||
key=$mvt_key
|
||||
validate_schema="/%s/mouvements/movement.schema.json"|args:$module.name
|
||||
validate_schema="../movement.schema.json"
|
||||
type="movement"
|
||||
direction="sortie"
|
||||
outputNature=$operation
|
||||
|
@ -63,7 +63,7 @@
|
|||
{{/form}}
|
||||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
|
||||
{{:include file="../../_calcul_dispo.html" keep="equipments"}}
|
||||
|
||||
{{if $equipments !== null}}
|
||||
{{* calculer les quantité de matériels dont l'asso n'est pas propriétaire *}}
|
||||
|
|
|
@ -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="sorties"}}
|
||||
{{:include file="../../_nav.html" current="sorties"}}
|
||||
|
||||
{{if $_GET.ok}}
|
||||
<p class="block confirm">{{$_GET.msg}}</p>
|
||||
|
|
|
@ -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}}
|
||||
<header class="header">
|
||||
<h1>Sortie de matériel</h1>
|
||||
|
@ -11,7 +11,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"}}
|
||||
|
||||
{{* types de sorties *}}
|
||||
{{#foreach from=$config.outputNature item="elem"}}
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
{{:include
|
||||
file="/%s/_calcul_dispo.html"|args:$module.name
|
||||
file="../../_calcul_dispo.html"
|
||||
keep="equipments"
|
||||
date=$_POST.date|parse_date
|
||||
}}
|
||||
|
@ -50,7 +50,7 @@
|
|||
{{:assign var="operation" from="types_sorties.%d|args:$_POST.type_operation}}
|
||||
{{:save
|
||||
key=$mvt_key
|
||||
validate_schema="/%s/mouvements/movement.schema.json"|args:$module.name
|
||||
validate_schema="../movement.schema.json"
|
||||
type="movement"
|
||||
direction="sortie"
|
||||
outputNature=$operation
|
||||
|
@ -65,7 +65,7 @@
|
|||
{{/form}}
|
||||
|
||||
{{* Extraire et compiler les infos de la base *}}
|
||||
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
|
||||
{{:include file="../../_calcul_dispo.html" keep="equipments"}}
|
||||
|
||||
{{if $equipments !== null}}
|
||||
{{* calculer les disponibilités *}}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*}}
|
||||
|
||||
{{* 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"}}
|
||||
|
||||
{{:assign erreur = false}}
|
||||
{{:assign stock=0}}
|
||||
|
|
Loading…
Reference in New Issue