X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fcancel_cust.html;h=3259a03f6faafb6c3bbc6b02240abe2565a53751;hb=dfba562ff61f541ba7c75f2c02b32951b73aa002;hp=b7ecccd7e67d1b6070ee8282a56d8b40a789e65d;hpb=48e3f879908a13cb87786e32e158ff8a8bf18fbb;p=freeside.git diff --git a/httemplate/misc/cancel_cust.html b/httemplate/misc/cancel_cust.html index b7ecccd7e..3259a03f6 100644 --- a/httemplate/misc/cancel_cust.html +++ b/httemplate/misc/cancel_cust.html @@ -1,13 +1,11 @@ -<% include('/elements/header-popup.html', 'Cancel customer' ) %> - -<% include('/elements/error.html') %> +<& /elements/header-popup.html, mt('Cancel customer') &> +<& /elements/error.html &>
- -

Permanently delete all services and cancel this customer? +

<% mt('Permanently delete all services and cancel this customer?') |h %> @@ -15,17 +13,17 @@ STYLE="margin-left:auto; margin-right:auto"> - + -
Cancel now<% mt('Cancel now') |h %>
Cancel on date:  - <% include('/elements/input-date-field.html', { + <% mt('Cancel on date: ') |h %> + <& /elements/input-date-field.html, { 'name' => 'expire', 'value' => time, - } ) %> + } &>
@@ -38,23 +36,30 @@ function toggle(val) { } toggle(false); -<% $ban %> +% if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) { +% my $ban = "Ban this customer's "; +% $ban .= 'credit card' if $cust_main->payby =~ /^(CARD|DCRD)$/; +% $ban .= 'ACH account' if $cust_main->payby =~ /^(CHEK|DCHK)$/; +

+ <% mt($ban) |h %> +% } -<% include('/elements/tr-select-reason.html', +<& /elements/tr-select-reason.html, 'field' => 'reasonnum', 'reason_class' => 'C', 'cgi' => $cgi, 'control_button' => "document.getElementById('confirm_cancel_cust_button')", - ) -%> +&>

-          + +         +" onClick="parent.cClick();">

@@ -76,16 +81,5 @@ my $cust_main = qsearchs( { } ); die "No customer # $custnum" unless $cust_main; -my $ban = ''; -if ( $cust_main->payby =~ /^(CARD|DCRD|CHEK|DCHK)$/ ) { - $ban = '

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