equipment/mouvements/entrees/index.html

78 lines
2.1 KiB
HTML
Raw Normal View History

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-12-06 09:59:11 +01:00
{{if $_GET.msg|match:"suppression"}}
{{:assign msg="Entrée supprimée"}}
{{if $_GET.msg|match:"matériel"}}
{{:assign var="msg" value="%s - Matériel supprimé"|args:$msg}}
{{/if}}
{{elseif $_GET.msg == "entrée"}}
{{:assign msg="Entrée enregistrée"}}
{{elseif $_GET.msg == "modification"}}
{{:assign msg="Entrée modifiée"}}
{{/if}}
<p class="block confirm">{{$msg}}</p>
2023-11-24 08:57:50 +01:00
{{elseif $_GET.err}}
2023-12-06 09:59:11 +01:00
{{if $_GET.msg == "suppression"}}
<p class="block error">Impossible de supprimer l'entrée</p>
{{/if}}
2023-10-16 12:01:41 +02:00
{{/if}}
<form method="post" action="">
2023-12-06 09:59:11 +01:00
<fieldset class="entree">
<legend>Ajouter une entrée</legend>
<dl>
{{:linkbutton label="Matériel répertorié" shape="plus" href="repertorie.html" target="_dialog"}}
{{:linkbutton label="Matériel non répertorié" shape="plus" href="non_repertorie.html" target="_dialog"}}
{{:linkbutton label="Retour de sortie temporaire" shape="plus" href="retour.html" target="_dialog"}}
</dl>
</fieldset>
</form>
{{* lister les entrées *}}
2023-10-27 10:47:59 +02:00
<section class="liste_entrees">
2023-12-06 09:59:11 +01:00
<h2>Liste des entrées</h2>
2023-10-27 10:47:59 +02:00
2023-12-06 09:59:11 +01:00
{{#list
select="
$$.date AS 'Date' ;
$$.input_nature 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="input"
order=1}}
2023-10-27 10:47:59 +02:00
2023-12-06 09:59:11 +01:00
{{:assign var='mvt_key' value=$key}}
<tr>
<td>{{$date|date_short}}</td>
<td>{{$input_nature}}</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"}}
{{:linkbutton
label="Modifier"
2023-12-06 10:05:34 +01:00
href="../modifier_mouvement.html?key=%s&direction=input"|args:$mvt_key
2023-12-06 09:59:11 +01:00
shape="edit"
target="_dialog"}}
</td>
</tr>
{{else}}
<p class="block alert">Il n'y a aucune entrée.</p>
{{/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}}