modification url et déplacement bouton créer nouveau matériel
This commit is contained in:
parent
9a11e55ad7
commit
5307a847b9
|
@ -99,35 +99,35 @@
|
|||
{{if $direction === "input" && $type_mvt == 'temporaire'}}
|
||||
{{:linkbutton
|
||||
label="Retour"
|
||||
href="mouvements/sorties/emprunte.html?key=%s&prop=%s"|args:$key:$_GET.prop
|
||||
href="%smouvements/sorties/emprunte.html?key=%s&prop=%s"|args:$module.url:$key:$_GET.prop
|
||||
shape="history"
|
||||
target="_dialog"}}
|
||||
{{elseif $direction === "input" && $type_mvt == 'définitif'}}
|
||||
{{:linkbutton
|
||||
label="Sortir"
|
||||
href="mouvements/sorties/stock_disponible.html?key=%s&prop=%s"|args:$key:$_GET.prop
|
||||
href="%smouvements/sorties/stock_disponible.html?key=%s&prop=%s"|args:$module.url:$key:$_GET.prop
|
||||
shape="minus"
|
||||
target="_dialog"}}
|
||||
{{elseif $direction === "output" && $type_mvt == 'temporaire'}}
|
||||
{{:linkbutton
|
||||
label="Retour"
|
||||
href="mouvements/entrees/retour.html?key=%s&prop=%s"|args:$key:$_GET.prop
|
||||
href="%smouvements/entrees/retour.html?key=%s&prop=%s"|args:$module.url:$key:$_GET.prop
|
||||
shape="history"
|
||||
target="_dialog"}}
|
||||
{{/if}}
|
||||
{{:linkbutton
|
||||
label="Dupliquer"
|
||||
href="mouvements/dupliquer_mouvement.html?key=%s&direction=%s&prop=%s"|args:$key:$direction:$_GET.prop
|
||||
href="%smouvements/dupliquer_mouvement.html?key=%s&direction=%s&prop=%s"|args:$module.url:$key:$direction:$_GET.prop
|
||||
shape="plus"
|
||||
target="_dialog"}}
|
||||
{{:linkbutton
|
||||
label="Modifier"
|
||||
href="mouvements/modifier_mouvement.html?key=%s&direction=%s&prop=%s"|args:$key:$direction:$_GET.prop
|
||||
href="%smouvements/modifier_mouvement.html?key=%s&direction=%s&prop=%s"|args:$module.url:$key:$direction:$_GET.prop
|
||||
shape="edit"
|
||||
target="_dialog"}}
|
||||
{{:linkbutton
|
||||
label="Supprimer"
|
||||
href="mouvements/supprimer_mouvement.html?key=%s&direction=%s&prop=%s"|args:$key:$direction:$_GET.prop
|
||||
href="%smouvements/supprimer_mouvement.html?key=%s&direction=%s&prop=%s"|args:$module.url:$key:$direction:$_GET.prop
|
||||
shape="delete"
|
||||
target="_dialog"}}
|
||||
</td>
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
{{if $_GET.ok}}
|
||||
{{if $_GET.msg == "ajout" }}
|
||||
<p class="block confirm">Ajout effectué</p>
|
||||
{{elseif $_GET.msg == "modification" }}
|
||||
<p class="block confirm">Modification effectuée</p>
|
||||
{{else}}
|
||||
<p class="block confirm">{{$_GET.msg}}</p>
|
||||
{{/if}}
|
||||
|
@ -22,6 +24,9 @@
|
|||
{{if $category_keys|count == 0}}
|
||||
<p class="block alert">Il n'y a aucune catégorie : vous devez en ajouter.</p>
|
||||
{{else}}
|
||||
<fieldset>
|
||||
{{:linkbutton label="Ajouter un nouveau matériel" shape="plus" href="mouvements/ajouter_entree.html" target="_dialog"}}
|
||||
</fieldset>
|
||||
{{:include file="./inventaire.html" print_cat_name=true}}
|
||||
{{/if}}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue