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}}
|
|
|
|
<p class="block confirm">Entrée enregistrée.</p>
|
|
|
|
{{/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-10-17 12:55:19 +02:00
|
|
|
{{:linkbutton label="Matériel répertorié" shape="plus" href="repertorie.html"}}
|
|
|
|
{{:linkbutton label="Matériel non répertorié" shape="plus" href="non_repertorie.html}}
|
2023-10-13 16:14:46 +02:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{{* lister les entrées *}}
|
2023-10-16 12:01:41 +02:00
|
|
|
<table class="list">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Nombre</th>
|
|
|
|
<th>Matériel</th>
|
|
|
|
<th>Remarques</th>
|
|
|
|
<th>Action(s)</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{#load type="movement" direction="entrée" assign="entrees"}}
|
|
|
|
{{#load type="equipment" key=$entrees.equipment assign="equipment"}}
|
|
|
|
<tr>
|
|
|
|
<td>{{$entrees.date}}</td>
|
|
|
|
<td>{{$entrees.inputNature}}</td>
|
|
|
|
<td>{{$entrees.amount}}</td>
|
|
|
|
<td>{{$designation}}</td>
|
|
|
|
<td>{{$entrees.comment}}</td>
|
|
|
|
<td class="actions">
|
|
|
|
{{:linkbutton label="Supprimer" href="delete.html?id=%s"|args:$key shape="delete" target="_dialog"}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{/load}}
|
|
|
|
</tbody>
|
|
|
|
{{/load}}
|
|
|
|
</table>
|
|
|
|
|
2023-10-10 16:16:03 +02:00
|
|
|
{{:admin_footer}}
|