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"}}
|
2025-02-25 12:20:58 +01:00
|
|
|
{{:assign var="directions.input" value="d'entrées"}}
|
|
|
|
{{:assign var="directions.output" value="de sorties"}}
|
2023-11-15 14:49:34 +01:00
|
|
|
|
2025-02-25 12:20:58 +01:00
|
|
|
{{#foreach from=$directions key="direction" item="item"}}
|
2023-12-08 17:34:18 +01:00
|
|
|
|
2025-02-25 12:20:58 +01:00
|
|
|
{{* types de mouvements qui ne peuvent être supprimés *}}
|
|
|
|
{{#load type="movement" where="$$.direction='%s'"|args:$direction group="$$.operation"}}
|
|
|
|
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$direction:$operation}}
|
|
|
|
{{:assign var="locked_%ss."|args:$direction value=$op_label}}
|
|
|
|
{{/load}}
|
2023-12-08 17:34:18 +01:00
|
|
|
|
2025-02-25 12:20:58 +01:00
|
|
|
<h2>Types {{$item}}</h2>
|
|
|
|
<table class="list">
|
|
|
|
<thead>
|
2024-11-21 12:26:30 +01:00
|
|
|
<tr>
|
2025-02-25 12:20:58 +01:00
|
|
|
<th>Libellé</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th></th>
|
2024-11-21 12:26:30 +01:00
|
|
|
</tr>
|
2025-02-25 12:20:58 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{:assign var="nature" from="config.%s_nature"|args:$direction}}
|
|
|
|
{{#foreach from=$nature key=key}}
|
|
|
|
<tr>
|
|
|
|
<td>{{$label}}</td>
|
|
|
|
<td>{{$type}}</td>
|
|
|
|
<td class="actions">
|
|
|
|
{{:assign var="locked" from="locked_%ss"|args:$direction}}
|
|
|
|
{{if ! $locked|has:$label}}
|
|
|
|
{{:linkbutton label="Supprimer" shape="delete" href="config/supprimer_type_mouvement.html?dir=%s&op_key=%s"|args:$direction:$key target="_dialog"}}
|
|
|
|
{{/if}}
|
|
|
|
{{:linkbutton label="Modifier" shape="edit" href="config/modifier_type_mouvement.html?dir=%s&op_key=%s"|args:$direction:$key target="_dialog"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/foreach}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{{/foreach}}
|
2023-10-24 18:11:28 +02:00
|
|
|
|
|
|
|
{{:admin_footer}}
|