equipment/mouvements/sorties/index.html

65 lines
1.9 KiB
HTML

{{#restrict section="accounting" level="read"}}{{/restrict}}
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
{{* barre de navigation *}}
{{:include file="../../_nav.html" current="sorties"}}
{{if $_GET.ok}}
<p class="block confirm">{{$_GET.msg}}</p>
{{elseif $_GET.err}}
<p class="block error">{{$_GET.msg}}</p>
{{/if}}
<form method="post" action="">
<fieldset class="sortie">
<legend>Ajouter une sortie </legend>
{{:linkbutton label="Matériel en stock disponible" shape="plus" href="stock_disponible.html?dialog" target="_dialog"}}
{{:linkbutton label="Matériel emprunté" shape="plus" href="emprunte.html?dialog" target="_dialog"}}
</fieldset>
</form>
{{* lister les sorties *}}
<section class="liste_sorties">
<h2>Liste des sorties</h2>
{{#list
select="
$$.date AS 'Date' ;
$$.outputNature 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="sortie"
order=1}}
{{:assign var='mvt_key' value=$key}}
<tr>
<td>{{$date|date_short}}</td>
<td>{{$outputNature}}</td>
<td>{{$amount}}</td>
<td>{{$col4}}</td>
<td>{{$comment}}</td>
<td class="actions">
{{:linkbutton
label="Supprimer"
href="delete_sortie.html?key=%s"|args:$mvt_key
shape="delete"
target="_dialog"}}
{{:linkbutton
label="Modifier"
href="../modifier_mouvement.html?key=%s&direction=sortie&caller=%s"|args:$mvt_key:$request_url
shape="edit"
target="_dialog"}}
</td>
</tr>
{{else}}
<p class="block alert">Il n'y a aucune sortie.</p>
{{/list}}
</section>
{{:admin_footer}}