FSN#37812 Mobile opdrachten als leverancier kunnen afwijzen/cancelen.
svn path=/Website/trunk/; revision=31363
This commit is contained in:
@@ -299,6 +299,18 @@ else
|
||||
%>
|
||||
}
|
||||
}
|
||||
function opdr_cancel_submit()
|
||||
{
|
||||
$.post($("form[name=cancelform]")[0].action, $("[name=cancelform]").serialize(), McltCallbackAndThenAlways(opdr_cancel_submit_callback), "json");
|
||||
return false;
|
||||
}
|
||||
function opdr_cancel_submit_callback(json)
|
||||
{
|
||||
if (json.success)
|
||||
{
|
||||
window.location.href = "order.asp?opdr_key=<%=opdr_key%>";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
@@ -465,8 +477,8 @@ else
|
||||
if (this_opdr.canAccept)
|
||||
BUTTON(L("lcl_accept"), {click: "opdr_accept()", dataicon: "check"});
|
||||
// DIT VEREIST NOG EEN OMZETTING IN opdr_cancel_save.asp > TODO
|
||||
//if (this_opdr.canCancel)
|
||||
// BUTTON(L("lcl_mld_opdr_cancel_button"), {click: "opdr_cancel()", dataicon: "delete"});
|
||||
if (this_opdr.canCancel)
|
||||
BUTTON(L("lcl_mld_opdr_cancel_button"), {linkid: "#opdr-3-"+opdr_key, dataicon: "delete", transition: "pop", datarel: "dialog"});
|
||||
if (this_opdr.canChange)
|
||||
BUTTON(L("lcl_submit"), {click: "opdr_submit()", dataicon: "refresh"});
|
||||
if (this_opdr.canGoedkeur ||
|
||||
@@ -526,6 +538,23 @@ else
|
||||
mobile.trackingpage('opdracht', opdr_key, subject);
|
||||
PAGE_END();
|
||||
}
|
||||
|
||||
PAGE_START({id: "opdr-3-"+opdr_key})
|
||||
HEADER({title: L("lcl_mld_opdr_cancel_button")+" "+subject, back: false, nohome: true}) ;
|
||||
CONTENT_START();
|
||||
%>
|
||||
<form id="cancelform" name="cancelform" action="../mld/opdr_cancel_save.asp?opdr_key=<%=opdr_key%>" method="post">
|
||||
<%
|
||||
RWFIELD("opdr_opm" , L("lcl_mld_inf_Opmerking"), mld_opdr.opdr_opmerking, {multi: true});
|
||||
CONTROLGROUP_START();
|
||||
BUTTON(L("lcl_submit"), {click: "opdr_cancel_submit()", dataicon: "refresh"});
|
||||
CONTROLGROUP_END();
|
||||
IFACE.FORM_END();
|
||||
%>
|
||||
</form>
|
||||
<%
|
||||
CONTENT_END();
|
||||
PAGE_END();
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user