equipment/mouvements/sorties/index.html

40 lines
1.4 KiB
HTML
Raw Normal View History

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}}
<p class="block confirm">{{$_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-10-27 08:54:05 +02:00
{{:linkbutton label="Matériel en stock disponible" shape="plus" href="stock_disponible.html" target="_dialog"}}
2023-10-19 14:54:03 +02:00
{{:linkbutton label="Matériel emprunté" shape="plus" href="emprunte.html}}
</fieldset>
</form>
{{* lister les sorties *}}
<section class="liste_entrees">
<h2>Liste des sorties</h2>
{{#list select="$$.date AS 'Date' ; $$.outputNature AS 'Type' ; $$.amount AS 'Nombre' ; "" AS 'Matériel' ; $$.comment AS 'Remarques'" type="movement" direction="sortie" order=1}}
{{:assign var='mvt_key' value=$key}}
{{#load type="equipment" key=$equipment assign="equipment"}}
<tr>
<td>{{$date|date_short}}</td>
<td>{{$outputNature}}</td>
<td>{{$amount}}</td>
<td>{{$designation}}</td>
<td>{{$comment}}</td>
<td class="actions">
2023-10-27 08:54:05 +02:00
{{:linkbutton label="Supprimer" href="delete_sortie.html?key=%s"|args:$mvt_key shape="delete" target="_dialog"}}
2023-10-19 14:54:03 +02:00
</td>
</tr>
{{/load}}
{{/list}}
</section>
2023-10-10 16:16:03 +02:00
{{:admin_footer}}