2023-10-13 16:14:46 +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="entrees"}}
|
|
|
|
|
2023-10-16 12:01:41 +02:00
|
|
|
{{if $_GET.ok}}
|
2023-10-27 10:47:59 +02:00
|
|
|
<p class="block confirm">{{$_GET.msg}}</p>
|
2023-10-16 12:01:41 +02:00
|
|
|
{{/if}}
|
|
|
|
|
2023-10-13 16:14:46 +02:00
|
|
|
<form method="post" action="">
|
|
|
|
<fieldset class="entree">
|
|
|
|
<legend>Ajouter une entrée pour du </legend>
|
2023-11-01 16:53:20 +01:00
|
|
|
{{:linkbutton label="Matériel répertorié" shape="plus" href="repertorie.html?dialog" target="_dialog"}}
|
|
|
|
{{:linkbutton label="Matériel non répertorié" shape="plus" href="non_repertorie.html?dialog" target="_dialog"}}
|
2023-11-20 16:07:30 +01:00
|
|
|
{{:linkbutton label="Retour de sortie temporaire" shape="plus" href="retour.html?dialog" target="_dialog"}}
|
2023-10-13 16:14:46 +02:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{* lister les entrées *}}
|
2023-10-27 10:47:59 +02:00
|
|
|
<section class="liste_entrees">
|
2023-10-30 13:42:49 +01:00
|
|
|
<h2>Liste des entrées</h2>
|
2023-10-27 10:47:59 +02:00
|
|
|
|
|
|
|
{{#list
|
|
|
|
select="
|
|
|
|
$$.date AS 'Date' ;
|
|
|
|
$$.inputNature AS 'Type' ;
|
|
|
|
$$.amount AS 'Nombre' ;
|
|
|
|
(SELECT $$.designation
|
|
|
|
FROM @TABLE AS b
|
2023-10-30 13:42:49 +01:00
|
|
|
WHERE b.key = @TABLE.$$.equipment)
|
2023-10-27 10:47:59 +02:00
|
|
|
AS 'Matériel' ;
|
|
|
|
$$.comment AS 'Remarques'"
|
|
|
|
type="movement"
|
|
|
|
direction="entrée"
|
|
|
|
order=1}}
|
|
|
|
|
2023-10-30 13:42:49 +01:00
|
|
|
{{:assign var='mvt_key' value=$key}}
|
|
|
|
<tr>
|
|
|
|
<td>{{$date|date_short}}</td>
|
|
|
|
<td>{{$inputNature}}</td>
|
|
|
|
<td>{{$amount}}</td>
|
|
|
|
<td>{{$col4}}</td>
|
|
|
|
<td>{{$comment}}</td>
|
|
|
|
<td class="actions">
|
2023-11-23 14:47:34 +01:00
|
|
|
{{:linkbutton
|
|
|
|
label="Supprimer"
|
|
|
|
href="delete_entree.html?key=%s"|args:$mvt_key
|
|
|
|
shape="delete"
|
|
|
|
target="_dialog"}}
|
2023-10-27 10:47:59 +02:00
|
|
|
{{*
|
2023-10-30 13:42:49 +01:00
|
|
|
{{:linkbutton
|
|
|
|
label="Supprimer"
|
|
|
|
href="../delete_movement.html?key=%s&mvt=entrée&caller=%s"|args:$mvt_key:$request_url
|
|
|
|
shape="delete"
|
|
|
|
target="_dialog"}}
|
2023-11-23 14:47:34 +01:00
|
|
|
*}}
|
2023-10-30 13:42:49 +01:00
|
|
|
</td>
|
2023-10-16 12:01:41 +02:00
|
|
|
</tr>
|
2023-10-30 13:42:49 +01:00
|
|
|
{{/list}}
|
2023-10-27 10:47:59 +02:00
|
|
|
</section>
|
2023-10-16 12:01:41 +02:00
|
|
|
|
2023-10-10 16:16:03 +02:00
|
|
|
{{:admin_footer}}
|