X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=9b30d31b0b5942702c575529d7df4b8d482a4d21;hp=14825d0557b1cfb1a0cf7c2b08a84770b6109210;hb=022c84a3d9c8a946d5e0b3f0fff73aa771461bc5;hpb=caba365bbebc7e73ad0c25f9a3a9c75a48ed6140 diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 14825d055..9b30d31b0 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -23,119 +23,94 @@ % } %# agent, agent_custid, refnum (advertising source), referral_custnum +%# better section title for this? +<% mt('Basics') |h %> <& cust_main/top_misc.html, $cust_main, 'custnum' => $custnum &> %# birthdate -% if ( $conf->exists('cust_main-enable_birthdate') ) { +% if ( $conf->config('national_id-country') +% || $conf->exists('cust_main-enable_birthdate') +% || $conf->exists('cust_main-enable_spouse_birthdate') +% || $conf->exists('cust_main-enable_anniversary_date') +% ) +% {
<& cust_main/birthdate.html, $cust_main &> % } - -%# contact info - -% my $same_checked = ''; -% my $ship_disabled = ''; -% my @ship_style = (); -% unless ( $cust_main->ship_last && $same ne 'Y' ) { -% $same_checked = 'CHECKED'; -% $ship_disabled = 'DISABLED'; -% push @ship_style, 'background-color:#dddddd'; -% foreach ( -% qw( last first company address1 address2 city county state zip country -% latitude longitude coord_auto -% daytime night fax mobile ) -% ) { -% $cust_main->set("ship_$_", $cust_main->get($_) ); -% } -% } - +% my $has_ship_address = ''; +% if ( $cgi->param('error') ) { +% $has_ship_address = !$same; +% } elsif ( $cust_main->custnum ) { +% $has_ship_address = $cust_main->has_ship_address; +% }
-<% mt('Billing address') |h %> - -<& cust_main/contact.html, - 'cust_main' => $cust_main, - 'pre' => '', - 'onchange' => 'bill_changed(this)', - 'disabled' => '', - 'ss' => $ss, - 'stateid' => $stateid, - 'same_checked' => $same_checked, #for address2 "Unit #" labeling -&> + + + + + + +
+%#; padding-right:2px; vertical-align:top"> + <% mt('Billing address') |h %> + + <& cust_main/before_bill_location.html, $cust_main &> + <& /elements/location.html, + object => $cust_main->bill_location, + prefix => 'bill_', + &> + <& cust_main/after_bill_location.html, $cust_main &> +
+
+%#; padding-left:2px; vertical-align:top"> + <% mt('Service address') |h %> + + ><% mt('same as billing address') |h %> + + <& /elements/location.html, + object => $cust_main->ship_location, + prefix => 'ship_', + enable_censustract => 1, + enable_district => 1, + &> +
+ + + +

-<% mt('Service address') |h %> -(><% mt('same as billing address') |h %>) -<& cust_main/contact.html, +<& cust_main/contacts_new.html, 'cust_main' => $cust_main, - 'pre' => 'ship_', - 'onchange' => '', - 'disabled' => $ship_disabled, - 'style' => \@ship_style &> %# billing info @@ -143,12 +118,14 @@ function samechanged(what) { 'payinfo' => $payinfo, 'invoicing_list' => \@invoicing_list, &> +
% my $ro_comments = $conf->exists('cust_main-use_comments')?'':'readonly'; % if (!$ro_comments || $cust_main->comments) { -
<% mt('Comments') |h %> - <% &ntable("#cccccc") %> +
+ <% mt('Comments') |h %> +