2024-11-14 16:21:10 +01:00
|
|
|
{{* -*- brindille -*- *}}
|
|
|
|
|
2023-10-24 18:11:28 +02:00
|
|
|
{{:admin_header title="Configuration" current="module_equipment"}}
|
|
|
|
|
|
|
|
{{* barre de navigation *}}
|
2024-11-14 16:21:10 +01:00
|
|
|
{{:include file="_nav.html" current="config" subcurrent="typesES"}}
|
2023-10-24 18:11:28 +02:00
|
|
|
|
|
|
|
{{if $_GET.ok}}
|
2023-12-06 09:59:11 +01:00
|
|
|
<p class="block confirm">Configuration enregistrée.</p>
|
2023-10-24 18:11:28 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2023-12-08 17:34:18 +01:00
|
|
|
{{* lecture config (défaut ou enregistrée) *}}
|
|
|
|
{{:include file="./_get_config.html" keep="config"}}
|
2023-10-24 18:11:28 +02:00
|
|
|
|
2023-11-29 20:14:31 +01:00
|
|
|
{{* types d'entrées *}}
|
2023-12-08 17:34:18 +01:00
|
|
|
{{#foreach from=$config.input_nature key="label" item="type"}}
|
|
|
|
{{:assign var='input_types.%s'|args:$type value=$type}}
|
2023-11-29 20:14:31 +01:00
|
|
|
{{/foreach}}
|
2023-11-15 14:49:34 +01:00
|
|
|
|
2024-11-21 12:26:30 +01:00
|
|
|
{{* types d'entrées qui ne peuvent être supprimées *}}
|
2023-12-08 17:34:18 +01:00
|
|
|
{{#load type="movement" where="$$.direction='input'" group="$$.input_nature"}}
|
|
|
|
{{:assign var="locked_inputs." value=$input_nature}}
|
|
|
|
{{/load}}
|
|
|
|
|
2023-11-15 14:49:34 +01:00
|
|
|
{{* types de sorties *}}
|
2023-12-08 17:34:18 +01:00
|
|
|
{{#foreach from=$config.output_nature key="label" item="type"}}
|
|
|
|
{{:assign var='output_types.%s'|args:$type value=$type}}
|
2023-11-29 20:14:31 +01:00
|
|
|
{{/foreach}}
|
2023-10-24 18:11:28 +02:00
|
|
|
|
2024-11-21 12:26:30 +01:00
|
|
|
{{* types de sorties qui ne peuvent être supprimées *}}
|
2023-12-08 17:34:18 +01:00
|
|
|
{{#load type="movement" where="$$.direction='output'" group="$$.output_nature"}}
|
|
|
|
{{:assign var="locked_outputs." value=$output_nature}}
|
|
|
|
{{/load}}
|
|
|
|
|
2024-11-21 12:26:30 +01:00
|
|
|
<h2>Types d'entrées</h2>
|
|
|
|
<table class="list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Libellé</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#foreach from=$config.input_nature key="label" item="type"}}
|
|
|
|
<tr>
|
|
|
|
<td>{{$label}}</td>
|
|
|
|
<td>{{$type}}</td>
|
|
|
|
<td class="actions">
|
|
|
|
{{if ! $locked_inputs|has:$label}}
|
|
|
|
{{:linkbutton label="Supprimer" shape="minus" href="config/supprimer_type_mouvement.html?dir=input&mvt=%s"|args:$label target="_dialog"}}
|
|
|
|
{{/if}}
|
|
|
|
{{:linkbutton label="Modifier" shape="edit" href="config/modifier_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-12-06 09:59:11 +01:00
|
|
|
|
2024-11-21 12:26:30 +01:00
|
|
|
<h2>Types de sorties</h2>
|
|
|
|
<table class="list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Libellé</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#foreach from=$config.output_nature key="label" item="type"}}
|
|
|
|
<tr>
|
|
|
|
<td>{{$label}}</td>
|
|
|
|
<td>{{$type}}</td>
|
|
|
|
<td class="actions">
|
|
|
|
{{if ! $locked_outputs|has:$label}}
|
|
|
|
{{:linkbutton label="Supprimer" shape="minus" href="config/supprimer_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
|
|
|
{{/if}}
|
|
|
|
{{:linkbutton label="Modifier" shape="edit" href="config/modifier_type_mouvement.html?dir=output&mvt=%s"|args:$label target="_dialog"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-10-24 18:11:28 +02:00
|
|
|
|
|
|
|
{{:admin_footer}}
|