From: ivan Date: Sat, 6 Jul 2002 08:50:48 +0000 (+0000) Subject: add "are you sure?" javascript on view/svc_acct.cgi "cancel unaudited account" X-Git-Tag: freeside_1_4_0_beta2~4 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=bc53d77e5cd5543a76bb38aa2acf96fbfa61714d;p=freeside.git add "are you sure?" javascript on view/svc_acct.cgi "cancel unaudited account" (closes: Bug#432) --- diff --git a/httemplate/view/svc_acct.cgi b/httemplate/view/svc_acct.cgi index fd2a32547..f6c1b026c 100755 --- a/httemplate/view/svc_acct.cgi +++ b/httemplate/view/svc_acct.cgi @@ -39,16 +39,27 @@ if ( $svc_acct->domsvc ) { $domain = $mydomain; } -print header('Account View', menubar( +%> + + + +<%= header('Account View', menubar( ( ( $pkgnum || $custnum ) ? ( "View this package (#$pkgnum)" => "${p}view/cust_pkg.cgi?$pkgnum", "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", ) : ( "Cancel this (unaudited) account" => - "${p}misc/cancel-unaudited.cgi?$svcnum" ) + "javascript:areyousure(\'${p}misc/cancel-unaudited.cgi?$svcnum\')" ) ), "Main menu" => $p, -)); +)) %> + +<% #print qq!
Send account information!;