Gestion config par défaut + ajout contrôles
This commit is contained in:
parent
be70b6ef6e
commit
794094b712
11 changed files with 226 additions and 161 deletions
|
|
@ -25,9 +25,12 @@
|
|||
{{:assign date_init=$mvt_modif.date|date_short}}
|
||||
{{:assign key_eqpmt_init=$mvt_modif.equipment}}
|
||||
|
||||
{{* récupérer la config des entrées/sorties *}}
|
||||
{{:include file="/%s/_get_config.html"|args:$module.name keep="config"}}
|
||||
|
||||
{{if $direction == "entrée"}}
|
||||
{{* types d'entrées *}}
|
||||
{{#foreach from=$module.config.inputNature key="rang" item="elem"}}
|
||||
{{#foreach from=$config.inputNature key="rang" item="elem"}}
|
||||
{{:assign var='types_entrees.' value="%s"|args:$elem.label}}
|
||||
{{if $elem.label == $mvt_modif.inputNature}}
|
||||
{{:assign type_defaut=$rang}}
|
||||
|
|
@ -35,7 +38,7 @@
|
|||
{{/foreach}}
|
||||
{{else}}
|
||||
{{* types de sorties *}}
|
||||
{{#foreach from=$module.config.outputNature key="rang" item="elem"}}
|
||||
{{#foreach from=$config.outputNature key="rang" item="elem"}}
|
||||
{{:assign var='types_sorties.' value="%s"|args:$elem.label}}
|
||||
{{if $elem.label == $mvt_modif.outputNature}}
|
||||
{{:assign type_defaut=$rang}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue