X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcancel_cust.html;h=b7ecccd7e67d1b6070ee8282a56d8b40a789e65d;hb=bb582ac8b4f2aee6dc4554a13acddcd8becfafe9;hp=74362f8622fbd8de497c1e521ec62874c0891d8e;hpb=3f23bdfaef8eb6bb092b72ea741b63e243f8ab19;p=freeside.git diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html index 74362f862..b7ecccd7e 100644 --- a/httemplate/misc/cancel_cust.html +++ b/httemplate/misc/cancel_cust.html @@ -2,23 +2,51 @@ <% include('/elements/error.html') %> +

Permanently delete all services and cancel this customer? - <% $ban %> - -

- -<% ntable("#cccccc", 2) %> + + + + + + + + + +
+ + Cancel now
+ + Cancel on date:  + <% include('/elements/input-date-field.html', { + 'name' => 'expire', + 'value' => time, + } ) %> +
+ +<% $ban %> + <% include('/elements/tr-select-reason.html', 'field' => 'reasonnum', 'reason_class' => 'C', 'cgi' => $cgi, - 'control_button' => 'document.cust_cancel_popup.submit', + 'control_button' => "document.getElementById('confirm_cancel_cust_button')", ) %> @@ -26,7 +54,7 @@

-          +          @@ -34,16 +62,9 @@ <%init> -my $reasonnum = ''; -my($submit, $class); - $cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum'; my $custnum = $1; -if ( $cgi->param('error') ) { - $reasonnum = $cgi->param('reasonnum'); -} - my $curuser = $FS::CurrentUser::CurrentUser; die "access denied" unless $curuser->access_right('Cancel customer'); @@ -57,8 +78,8 @@ die "No customer # $custnum" unless $cust_main; my $ban = ''; if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) { - $ban = '

'. - ' Ban this customer\'s '; + $ban = '

'. + ' Ban this customer\'s '; if ( $cust_main->payby =~ /^(CARD|DCRD)$/ ) { $ban .= 'credit card'; } elsif ( $cust_main->payby =~ /^(CHEK|DCHK)$/ ) {