X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fcust_payby.html;fp=httemplate%2Felements%2Fcust_payby.html;h=20ad343115d1ece4a026bffb529bf31f93a42ca3;hp=0000000000000000000000000000000000000000;hb=b68c4a4a92d9b03527f109235093fcc98b98dd2a;hpb=ad1d603d9e9a813e697c267d29fefd00fee56ae7 diff --git a/httemplate/elements/cust_payby.html b/httemplate/elements/cust_payby.html new file mode 100644 index 000000000..20ad34311 --- /dev/null +++ b/httemplate/elements/cust_payby.html @@ -0,0 +1,309 @@ +% unless ( $opt{'js_only'} ) { + + + +
+ + <% mt('Type') |h %> + |
+
+% ###
+% # card info
+% ###
+
+% my $card_display = $sel_payby eq 'CARD' ? '' : 'STYLE="display:none"';
+
+ >
+
+ <% mt('Card number') |h %> + |
+
+ >
+ <& /elements/select-month_year.html,
+ 'prefix' => $name. '_paydate',
+ 'selected_date' => (
+ ( $cgi->param($name.'_payby') || $cust_payby->payby ) =~ /^(CARD|DCRD)$/
+ ? ( $cgi->param($name.'_paydate_month')
+ ? $cgi->param($name.'_paydate_month'). '-1-'.
+ $cgi->param($name.'_paydate_year')
+ : $cust_payby->paydate
+ )
+ : ''
+ ),
+ 'onhhange' => $onchange,
+ &>
+ Expiration date + |
+
+ >
+
+ <% mt('CVV2') |h %> (<% mt('help') |h %>) + |
+
+ >
+
+ <% mt('Exact name on card') |h %> + |
+
+% ###
+% # chek info
+% ###
+
+% my $chek_display = $sel_payby eq 'CHEK' ? '' : 'STYLE="display:none"';
+
+ >
+
+ <% mt('Account type') |h %> + |
+
+% my( $account, $aba ) = split('@',
+% ( $cgi->param($name.'_payby') || $cust_payby->payby ) =~ /^(CHEK|DCHK)$/
+% ? $cgi->param($name.'_payinfo')
+% : $cust_payby->payinfo
+% );
+% my $branch = '';
+% ($branch,$aba) = split('\.',$aba)
+% if $echeck_country eq 'CA';
+%
+% #false laziness w/view/cust_main/billing.html and misc/payment.cgi
+% my $routing_label = $echeck_country eq 'US' ? 'ABA/Routing #'
+% : 'Routing #';
+% my $routing_size = $echeck_country eq 'CA' ? 4 : 10;
+% my $routing_maxlength = $echeck_country eq 'CA' ? 3 : 9;
+% my $bankname_size = $echeck_country eq 'CA' ? 13 : 20;
+
+ >
+
+ <% mt('Account #') |h %> (<% mt('help') |h %>) + |
+
+ >
+
+ <% mt($routing_label) |h %> + |
+
+% if ( $echeck_country eq 'CA' ) {
+ >
+
+ <% mt('Branch #') |h %> + |
+% }
+
+ >
+
+ <% mt('Bank name') |h %> + |
+
+% if ( $conf->exists('show_bankstate') ) {
+ >
+ <& /elements/select-state.html,
+ 'prefix' => $name. '_pay',
+ 'empty' => emt('(choose)'),
+ 'state' => $cgi->param($name.'_paystate')
+ || $cust_payby->paystate,
+ #was cust_main->country in 3.x, but this will do until/unlesss
+ # someone needs to track foreign bank states
+ 'country' => scalar($conf->config('countrydefault')) || 'US',
+ &>
+ <% mt('Bank state') |h %> + |
+% }
+
+% ###
+% # auto (maybe this should be first...)
+% ###
+
+% #some fun javascript to enforce a single value for each weight
+
+
+
+ + <% mt('Auto-charge') |h %> + |
+
+