onglet historique : ajout boutons entrée/sortie/retour

This commit is contained in:
Jean-Christophe Engel 2025-03-27 15:53:41 +01:00
parent c6177b4438
commit c251573049
2 changed files with 18 additions and 1 deletions

View File

@ -44,6 +44,8 @@
<p class="block confirm">Mouvement copié</p>
{{elseif $_GET.msg == "suppression"}}
<p class="block confirm">Mouvement supprimé</p>
{{else}}
<p class="block confirm">Mouvement enregistré</p>
{{/if}}
{{elseif $_GET.err}}
{{if $_GET.msg == "suppression"}}
@ -115,6 +117,21 @@
{{:assign var="quantites.%s.nonproprio"|args:$id value=$nonproprio}}
{{/load}}
<nav class="tabs">
<aside>
{{if $_GET.prop}}
{{if $equipment.stock > 0}}
{{:linkbutton label="Sortie" shape="minus" href="mouvements/sorties/stock_disponible.html?key=%s"|args:$_GET.key target="_dialog"}}
{{/if}}
{{:linkbutton label="Entrée" shape="plus" href="mouvements/entrees/repertorie.html?key=%s"|args:$_GET.key target="_dialog"}}
{{else}}
{{if $equipment.notowned > 0}}
{{:linkbutton label="Retour" href="mouvements/sorties/emprunte.html?key=%s"|args:$_GET.key shape="history" target="_dialog"}}
{{/if}}
{{:linkbutton label="Entrée" shape="plus" href="mouvements/entrees/repertorie.html?key=%s"|args:$_GET.key target="_dialog"}}
{{/if}}
</aside>
</nav>
{{* lister tous les mouvements du matériel passé en paramètre *}}
{{if $_GET.prop}}
{{#list

View File

@ -79,7 +79,7 @@
{{else}}
{{:assign prop=1}}
{{/if}}
{{:redirect force="../../index.html?ok=1&msg=entrée&prop=%s"|args:$prop}}
{{:redirect force="../../historique.html?key=%s&ok=1&msg=entrée&prop=%s"|args:$equipment.key:$prop}}
{{/form}}
{{:admin_header title="Entrée de matériel" custom_css="./../../style.css" current="module_equipment"}}