equipment/mouvements/entrees/index.html

66 lines
2.0 KiB
HTML
Raw Normal View History

2023-12-04 10:56:36 +01:00
{{#restrict section="accounting" level="read" block=true}}{{/restrict}}
2023-10-10 16:16:03 +02:00
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
{{* barre de navigation *}}
2023-12-05 10:07:01 +01:00
{{:include file="../../_nav.html" current="entrees"}}
2023-10-10 16:16:03 +02:00
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}}
<form method="post" action="">
<fieldset class="entree">
<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"}}
{{:linkbutton label="Retour de sortie temporaire" shape="plus" href="retour.html?dialog" target="_dialog"}}
</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">
{{: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"
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}}
<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}}