début nouvelle config types ES
This commit is contained in:
parent
b6de0c59c0
commit
b19904b05b
10 changed files with 122 additions and 74 deletions
|
|
@ -52,32 +52,35 @@
|
|||
|
||||
{{* récupérer la config des entrées/sorties *}}
|
||||
{{:include file="./_get_config.html" keep="config"}}
|
||||
{{:debug config.input_nature=$config.input_nature}}
|
||||
|
||||
{{* déterminer les types de mouvements selon l'affection du matériel *}}
|
||||
{{#foreach from=$config.input_nature key=mvt item=type_mvt}}
|
||||
{{#foreach from=$config.input_nature}}
|
||||
{{:debug key=$key label=$label type=$type}}
|
||||
{{if $_GET.prop}}
|
||||
{{* matériel propriété de l'asso *}}
|
||||
{{if $type_mvt != 'temporaire'}}
|
||||
{{:assign var="input_types." value=$mvt}}
|
||||
{{if $type != 'temporaire'}}
|
||||
{{:assign var="input_types." value=$label}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{* matériel non propriété de l'asso *}}
|
||||
{{if $type_mvt == 'temporaire'}}
|
||||
{{:assign var="input_types." value=$mvt}}
|
||||
{{if $type == 'temporaire'}}
|
||||
{{:assign var="input_types." value=$label}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{:debug input_types=$input_types}}
|
||||
|
||||
{{#foreach from=$config.output_nature key=mvt item=type_mvt}}
|
||||
{{#foreach from=$config.output_nature}}
|
||||
{{if $_GET.prop}}
|
||||
{{* matériel propriété de l'asso *}}
|
||||
{{if $type_mvt != 'retour'}}
|
||||
{{:assign var="output_types." value=$mvt}}
|
||||
{{if $type != 'retour'}}
|
||||
{{:assign var="output_types." value=$label}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{* matériel non propriété de l'asso *}}
|
||||
{{if $type_mvt == 'retour'}}
|
||||
{{:assign var="output_types." value=$mvt}}
|
||||
{{if $type == 'retour'}}
|
||||
{{:assign var="output_types." value=$label}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue