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-11-24 08:57:50 +01:00
|
|
|
{{elseif $_GET.err}}
|
|
|
|
<p class="block error">{{$_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">
|
2023-11-29 13:34:25 +01:00
|
|
|
<legend>Ajouter une entrée</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-30 13:42:49 +01:00
|
|
|
{{:linkbutton
|
2023-11-28 15:16:10 +01:00
|
|
|
label="Modifier"
|
2023-11-29 13:34:25 +01:00
|
|
|
href="../modifier_mouvement.html?key=%s&direction=entrée&caller=%s"|args:$mvt_key:$request_url
|
2023-11-28 15:16:10 +01:00
|
|
|
shape="edit"
|
2023-10-30 13:42:49 +01:00
|
|
|
target="_dialog"}}
|
|
|
|
</td>
|
2023-10-16 12:01:41 +02:00
|
|
|
</tr>
|
2023-11-29 15:35:31 +01:00
|
|
|
{{else}}
|
2023-11-30 18:15:13 +01:00
|
|
|
<p class="block alert">Il n'y a aucune entrée.</p>
|
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}}
|