X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main.cgi;h=119572a1120f2d23f7ed10dcf77c4b9cf093b8cc;hb=cfcc4c14a40c84d1603c707066e7644aefef5690;hp=15c9f45b21f0ef04de0b6c5e0ff4cae501d06b53;hpb=c183de0b7e942672cafdc1c14a203e389ffd2c43;p=freeside.git diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 15c9f45b2..119572a11 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -1,22 +1,21 @@ -<% include('/elements/header.html', - "Customer $action", +<& /elements/header.html, + $title, '', ' onUnload="myclose()"' #hmm, in billing.html -) %> +&> -<% include('/elements/error.html') %> +<& /elements/error.html &>
> - + + % if ( $custnum ) { - Customer #<% $cust_main->display_custnum %> - + <% mt('Customer #') |h %><% $cust_main->display_custnum %> - <% ucfirst($cust_main->status) %> @@ -24,42 +23,39 @@ % } %# agent, agent_custid, refnum (advertising source), referral_custnum -<% include('cust_main/top_misc.html', $cust_main, 'custnum' => $custnum ) %> +<& cust_main/top_misc.html, $cust_main, 'custnum' => $custnum &> %# birthdate -% if ( $conf->exists('cust_main-enable_birthdate') ) { +% if ( $conf->exists('cust_main-enable_birthdate') +% || $conf->exists('cust_main-enable_spouse_birthdate') +% ) +% {
- <% include('cust_main/birthdate.html', $cust_main) %> -% } - -%# latitude and longitude -% if ( $conf->exists('cust_main-require_censustract') ) { -% my ($latitude, $longitude) = $cust_main->service_coordinates; -% $latitude ||= $conf->config('company_latitude') || ''; -% $longitude ||= $conf->config('company_longitude') || ''; - - + <& 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 STYLE="background-color: #dddddd"'; +% $ship_disabled = 'DISABLED'; +% push @ship_style, 'background-color:#dddddd'; % foreach ( % qw( last first company address1 address2 city county state zip country -% daytime night fax ) +% latitude longitude coord_auto +% daytime night fax mobile ) % ) { % $cust_main->set("ship_$_", $cust_main->get($_) ); % } % }
-Billing address +<% mt('Billing address') |h %> -<% include('cust_main/contact.html', +<& cust_main/contact.html, 'cust_main' => $cust_main, 'pre' => '', 'onchange' => 'bill_changed(this)', @@ -67,21 +63,26 @@ 'ss' => $ss, 'stateid' => $stateid, 'same_checked' => $same_checked, #for address2 "Unit #" labeling - ) -%> +&>
-Service address +<% mt('Service address') |h %> -(>same as billing address) -<% include('cust_main/contact.html', +><% mt('same as billing address') |h %> +<& cust_main/contact.html, 'cust_main' => $cust_main, 'pre' => 'ship_', 'onchange' => '', 'disabled' => $ship_disabled, - ) -%> + 'style' => \@ship_style +&> + +<& cust_main/contacts_new.html, + 'cust_main' => $cust_main, +&> %# billing info -<% include( 'cust_main/billing.html', $cust_main, +<& cust_main/billing.html, $cust_main, 'payinfo' => $payinfo, 'invoicing_list' => \@invoicing_list, - ) -%> +&> +
% my $ro_comments = $conf->exists('cust_main-use_comments')?'':'readonly'; % if (!$ro_comments || $cust_main->comments) { -
Comments - <% &ntable("#cccccc") %> +
+ <% mt('Comments') |h %> +