{{* -*- brindille -*- *}} {{* paramètres : - dir : input ou output - mvt : libellé du type de mouvement à supprimer *}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} {{if ! $dialog}} {{:include file="../_nav.html" current="config" subcurrent="typesES"}} {{/if}} {{* lecture config (défaut ou enregistrée) *}} {{:include file="../_get_config.html" keep="config"}} {{#form on="delete"}} {{#foreach from=$config.input_nature key="label" item="type"}} {{if $_GET.dir == 'input' && $label|trim|tolower != $_GET.mvt|trim|tolower || $_GET.dir == 'output'}} {{:assign var="input_nature.label" value=$label}} {{:assign var="input_nature.type" value=$type}} {{:assign var="input_natures." from=input_nature}} {{/if}} {{/foreach}} {{#foreach from=$config.output_nature key="label" item="type"}} {{if $_GET.dir == 'output' && $label|trim|tolower != $_GET.mvt|trim|tolower || $_GET.dir == 'input'}} {{:assign var="output_nature.label" value=$label}} {{:assign var="output_nature.type" value=$type}} {{:assign var="output_natures." from=output_nature}} {{/if}} {{/foreach}} {{:save key="config" validate_schema="../config.schema.json" input_nature=$input_natures output_nature=$output_natures }} {{:redirect to="./config.html?ok=1"}} {{/form}} {{if $_GET.dir == 'input'}} {{:delete_form legend="Supprimer cette entrée ?" warning="Supprimer l'entrée « %s » ?"|args:$_GET.mvt }} {{else}} {{:delete_form legend="Supprimer cette sortie ?" warning="Supprimer la sortie « %s » ?"|args:$_GET.mvt }} {{/if}} {{:form_errors}} {{:admin_footer}}