{{:admin_header title="Gestion des matériels" current="module_equipment"}} {{* barre de navigation *}} {{:include file="../../_nav.html" current="sorties"}} {{if $_GET.ok}} {{if $_GET.msg|match:"suppression"}} {{:assign msg="Sortie supprimée"}} {{if $_GET.msg|match:"matériel"}} {{:assign var="msg" value="%s - Matériel supprimé"|args:$msg}} {{/if}} {{elseif $_GET.msg == "sortie"}} {{:assign msg="Sortie enregistrée"}} {{elseif $_GET.msg == "modification"}} {{:assign msg="Sortie modifiée"}} {{/if}}

{{$msg}}

{{elseif $_GET.err}} {{if $_GET.msg == "suppression"}}

Impossible de supprimer la sortie

{{/if}} {{/if}}
Ajouter une sortie
{{:linkbutton label="Matériel en stock disponible" shape="plus" href="stock_disponible.html" target="_dialog"}} {{:linkbutton label="Matériel emprunté" shape="plus" href="emprunte.html" target="_dialog"}}
{{* lister les sorties *}}

Liste des sorties

{{#list select=" $$.date AS 'Date' ; $$.output_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="output" order=1}} {{:assign var='mvt_key' value=$key}} {{$date|date_short}} {{$output_nature}} {{$amount}} {{$col4}} {{$comment}} {{: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=output"|args:$mvt_key shape="edit" target="_dialog"}} {{else}}

Il n'y a aucune sortie.

{{/list}}
{{:admin_footer}}