Suppression url en paramètre appel
This commit is contained in:
parent
3a9424de78
commit
db497af1f3
|
@ -65,7 +65,7 @@
|
||||||
target="_dialog"}}
|
target="_dialog"}}
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
label="Modifier"
|
label="Modifier"
|
||||||
href="../modifier_mouvement.html?key=%s&direction=input&caller=%s"|args:$mvt_key:$request_url
|
href="../modifier_mouvement.html?key=%s&direction=input"|args:$mvt_key
|
||||||
shape="edit"
|
shape="edit"
|
||||||
target="_dialog"}}
|
target="_dialog"}}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||||
{{:admin_header title="Modifier une %s"|args:$_GET.direction current="module_equipment"}}
|
{{:admin_header title="Modifier une %s"|args:$_GET.direction current="module_equipment"}}
|
||||||
|
|
||||||
{{* déterminer l'url de retour *}}
|
|
||||||
{{:assign url=$_GET.caller}}
|
|
||||||
{{:assign pos=$url|strpos:"?"}}
|
|
||||||
{{if $pos|intval > 0}}
|
|
||||||
{{:assign url=$url|truncate:$pos:"":true}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:assign direction=$_GET.direction}}
|
{{:assign direction=$_GET.direction}}
|
||||||
{{:assign key_mvt=$_GET.key}}
|
{{:assign key_mvt=$_GET.key}}
|
||||||
|
|
||||||
|
@ -18,8 +11,10 @@
|
||||||
{{/load}}
|
{{/load}}
|
||||||
{{if $direction == "input"}}
|
{{if $direction == "input"}}
|
||||||
{{:assign input_init=$mvt_modif.input_nature}}
|
{{:assign input_init=$mvt_modif.input_nature}}
|
||||||
|
{{:assign url="entrees/index.html"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:assign output_init=$mvt_modif.output_nature}}
|
{{:assign output_init=$mvt_modif.output_nature}}
|
||||||
|
{{:assign url="sorties/index.html"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{:assign amount_init=$mvt_modif.amount}}
|
{{:assign amount_init=$mvt_modif.amount}}
|
||||||
{{:assign date_init=$mvt_modif.date|date_short}}
|
{{:assign date_init=$mvt_modif.date|date_short}}
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
target="_dialog"}}
|
target="_dialog"}}
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
label="Modifier"
|
label="Modifier"
|
||||||
href="../modifier_mouvement.html?key=%s&direction=output&caller=%s"|args:$mvt_key:$request_url
|
href="../modifier_mouvement.html?key=%s&direction=output"|args:$mvt_key
|
||||||
shape="edit"
|
shape="edit"
|
||||||
target="_dialog"}}
|
target="_dialog"}}
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue