refonte config types ES

This commit is contained in:
Jean-Christophe Engel 2025-02-17 14:11:25 +01:00
parent b19904b05b
commit 08ff1f82fd
16 changed files with 133 additions and 208 deletions

View file

@ -11,16 +11,17 @@
{{* lecture config (défaut ou enregistrée) *}}
{{:include file="./_get_config.html" keep="config"}}
{{*:debug config.in=$config.input_nature config.out=$config.output_nature*}}
{{* types d'entrées qui ne peuvent être supprimées *}}
{{#load type="movement" where="$$.direction='input'" group="$$.input_nature"}}
{{:assign var="locked_inputs." value=$input_nature}}
{{#load type="movement" where="$$.direction='input'" group="$$.operation"}}
{{:assign var="op_label" from="config.input_nature.%s.label"|args:$operation}}
{{:assign var="locked_inputs." value=$op_label}}
{{/load}}
{{* types de sorties qui ne peuvent être supprimées *}}
{{#load type="movement" where="$$.direction='output'" group="$$.output_nature"}}
{{:assign var="locked_outputs." value=$output_nature}}
{{:assign var="op_label" from="config.output_nature.%s.label"|args:$operation}}
{{:assign var="locked_outputs." value=$op_label}}
{{/load}}
<h2>Types d'entrées</h2>