modification url et déplacement bouton créer nouveau matériel

This commit is contained in:
Jean-Christophe Engel 2024-10-29 10:24:50 +01:00
parent 9a11e55ad7
commit 5307a847b9
3 changed files with 14 additions and 13 deletions

View file

@ -2,10 +2,6 @@
{{* inventaire des entrées/sorties des matériels des catégories de la variable category_keys *}}
<fieldset>
{{:linkbutton label="Ajouter un nouveau matériel" shape="plus" href="mouvements/ajouter_entree.html" target="_dialog"}}
</fieldset>
{{* Extraire et compiler les infos de la base *}}
{{:include file="./_calcul_dispo.html" keep="cumul_mvt,category_keys,equipments"}}
@ -57,7 +53,7 @@
{{* itérer sur les matériels de la catégorie *}}
{{#foreach from=$cat_elem.eqpmt key="eqpmt_key" item="eqpmt"}}
{{:assign keys=$eqpmt|keys}}
{{if "stock"|in:$keys && $eqpmt.stock !== 0}}
{{if "stock"|in:$keys}} {{* && $eqpmt.stock !== 0}}*}}
{{if "exterieur"|in:$keys}}
{{:assign dispo="%d-%d"|math:$eqpmt.stock:$eqpmt.exterieur}}
{{:assign exterieur=$eqpmt.exterieur}}
@ -73,11 +69,11 @@
<td class="actions">
{{:linkbutton
label="Mouvements"
href="historique.html?key=%s&prop=1"|args:$eqpmt_key
href="%shistorique.html?key=%s&prop=1"|args:$module.url:$eqpmt_key
shape="table"}}
{{:linkbutton
label="Modifier"
href="modifier_materiel.html?key=%s"|args:$eqpmt_key
href="%smodifier_materiel.html?key=%s"|args:$module.url:$eqpmt_key
shape="edit"
target="_dialog"}}
</td>