2023-10-19 14:54:03 +02:00
|
|
|
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
2023-10-10 16:16:03 +02:00
|
|
|
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
|
|
|
|
|
|
|
{{* barre de navigation *}}
|
|
|
|
{{:include file="/%s/_nav.html"|args:$module.name current="sorties"}}
|
|
|
|
|
2023-10-19 14:54:03 +02:00
|
|
|
{{if $_GET.ok}}
|
2023-10-27 09:23:18 +02:00
|
|
|
<p class="block confirm">{{$_GET.msg}}</p>
|
2023-11-22 14:28:42 +01:00
|
|
|
{{elseif $_GET.err}}
|
|
|
|
<p class="block error">{{$_GET.msg}}</p>
|
2023-10-19 14:54:03 +02:00
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<form method="post" action="">
|
|
|
|
<fieldset class="sortie">
|
|
|
|
<legend>Ajouter une sortie pour du </legend>
|
2023-11-01 16:53:20 +01:00
|
|
|
{{:linkbutton label="Matériel en stock disponible" shape="plus" href="stock_disponible.html?dialog" target="_dialog"}}
|
2023-11-20 14:00:00 +01:00
|
|
|
{{:linkbutton label="Matériel emprunté" shape="plus" href="emprunte.html?dialog" target="_dialog"}}
|
2023-10-19 14:54:03 +02:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{* lister les sorties *}}
|
2023-10-27 10:47:59 +02:00
|
|
|
<section class="liste_sorties">
|
2023-10-19 14:54:03 +02:00
|
|
|
<h2>Liste des sorties</h2>
|
2023-10-30 13:42:49 +01:00
|
|
|
|
|
|
|
{{#list
|
|
|
|
select="
|
|
|
|
$$.date AS 'Date' ;
|
|
|
|
$$.outputNature AS 'Type' ;
|
|
|
|
$$.amount AS 'Nombre' ;
|
|
|
|
(SELECT $$.designation
|
|
|
|
FROM @TABLE AS b
|
|
|
|
WHERE b.key = @TABLE.$$.equipment)
|
|
|
|
AS 'Matériel' ;
|
|
|
|
$$.comment AS 'Remarques'"
|
|
|
|
type="movement"
|
|
|
|
direction="sortie"
|
|
|
|
order=1}}
|
|
|
|
|
2023-10-19 14:54:03 +02:00
|
|
|
{{:assign var='mvt_key' value=$key}}
|
|
|
|
<tr>
|
|
|
|
<td>{{$date|date_short}}</td>
|
|
|
|
<td>{{$outputNature}}</td>
|
|
|
|
<td>{{$amount}}</td>
|
2023-10-30 13:42:49 +01:00
|
|
|
<td>{{$col4}}</td>
|
2023-10-19 14:54:03 +02:00
|
|
|
<td>{{$comment}}</td>
|
|
|
|
<td class="actions">
|
2023-10-30 13:42:49 +01:00
|
|
|
{{:linkbutton label="Supprimer" href="delete_sortie.html?key=%s"|args:$mvt_key shape="delete" target="_dialog"}}
|
2023-11-22 14:28:42 +01:00
|
|
|
{{*
|
2023-10-30 13:42:49 +01:00
|
|
|
{{:linkbutton
|
|
|
|
label="Supprimer"
|
|
|
|
href="../delete_movement.html?key=%s&mvt=sortie&caller=%s"|args:$mvt_key:$request_url
|
|
|
|
shape="delete"
|
|
|
|
target="_dialog"}}
|
2023-11-22 14:28:42 +01:00
|
|
|
*}}
|
2023-10-19 14:54:03 +02:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/list}}
|
|
|
|
</section>
|
|
|
|
|
2023-10-10 16:16:03 +02:00
|
|
|
{{:admin_footer}}
|