diff options
author | ivan <ivan> | 2002-08-24 03:29:16 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-08-24 03:29:16 +0000 |
commit | 96fd4cf172f2b9fbdd00f7b7fe7a7797132b88c2 (patch) | |
tree | 9c412371be15bf29d292788e1d71cbe148f252a4 /httemplate/view | |
parent | e0729955b2ad10fba02399afafec68fe5ccab97a (diff) |
unprovision a single service
Diffstat (limited to 'httemplate/view')
-rwxr-xr-x | httemplate/view/cust_main.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index a9d40fa27..0610bc324 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -299,6 +299,10 @@ function cust_pkg_areyousure(href) { if (confirm("Permanently delete included services and cancel this package?") == true) window.location.href = href; } +function svc_areyousure(href) { + if (confirm("Permanently unprovision and delete this service?") == true) + window.location.href = href; +} </SCRIPT> END @@ -412,7 +416,7 @@ foreach my $package (@packages) { my($svcnum) = $cust_svc->svcnum; my($sview) = popurl(2). "view"; print $n2,qq!<TD><A HREF="$sview/$svcdb.cgi?$svcnum"><FONT SIZE=-1>$label</FONT></A></TD>!, - qq!<TD><A HREF="$sview/$svcdb.cgi?$svcnum"><FONT SIZE=-1>$value</FONT></A></TD>!; + qq!<TD><FONT SIZE=-1><A HREF="$sview/$svcdb.cgi?$svcnum">$value</A><BR>( <A HREF="javascript:svc_areyousure('${p}misc/unprovision.cgi?$svcnum')">Unprovision</A> )</FONT></TD>!; } else { print $n2, qq!<TD COLSPAN=2><A HREF="$uiadd{$svcpart}?pkgnum$pkgnum-svcpart$svcpart"><b><font size="+1" color="#ff0000">!. qq!Provision $svc</A></b></font>!; |