{{* -*- brindille -*- *}} {{* paramètres : - dir : input ou output - op_key : clé du type de mouvement à supprimer *}} {{* 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=key}} {{if $_GET.dir == 'input' && $key != $_GET.op_key || $_GET.dir == 'output'}} {{:assign var="input_nature.key" value=$key}} {{: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=key}} {{if $_GET.dir == 'output' && $key != $_GET.op_key || $_GET.dir == 'input'}} {{:assign var="output_nature.key" value=$key}} {{: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}} {{:admin_header title="Gestion des matériels" current="module_equipment"}} {{:form_errors}} {{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}} {{:admin_footer}}