X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fcontact.html;h=57490b962526568b6f82f911197da2065ba5db22;hb=9b4209f91ad9e3c4cef7deebfb0180f6faf1d0dc;hp=a001634a229950e38f9071bcf2bd80f2d08767ba;hpb=c8cccb4a92adceb943c635fe62dad0d034462ce0;p=freeside.git diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index a001634a2..57490b962 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -1,128 +1,202 @@ -% -% -%my( $cust_main, $pre, $onchange, $disabled ) = @_; -%my $conf = new FS::Conf; -% -%#false laziness with ship state -%my $countrydefault = $conf->config('countrydefault') || 'US'; -%$cust_main->set($pre.'country', $countrydefault ) -% unless $cust_main->get($pre.'country'); -% -%my $statedefault = $conf->config('statedefault') -% || ($countrydefault eq 'US' ? 'CA' : ''); -%$cust_main->set($pre.'state', $statedefault ) -% unless $cust_main->get($pre.'state') -% || $cust_main->get($pre.'country') ne $countrydefault; -% -%#my($county_html, $state_html, $country_html) = -%# FS::cust_main_county::regionselector( $cust_main->get($pre.'county'), -%# $cust_main->get($pre.'state'), -%# $cust_main->get($pre.'country'), -%# $pre, -%# $onchange, -%# $disabled, -%# ); -% -%my %select_hash = ( -% 'county' => $cust_main->get($pre.'county'), -% 'state' => $cust_main->get($pre.'state'), -% 'country' => $cust_main->get($pre.'country'), -% 'prefix' => $pre, -% 'onchange' => $onchange, -% 'disabled' => $disabled, -%); -% -%my $daytime_label = FS::Msgcat::_gettext('daytime') || 'Day Phone'; -%my $night_label = FS::Msgcat::_gettext('night') || 'Night Phone'; -% -%my $r = qq!* !; -% -% - - -<% &ntable("#cccccc") %> +
<%$r%>Contact name (last, first) |
- - > , - > + | <%$r%><% mt('Contact name (last, first)') |h %> | ++ <%$style%>> , + <%$style%>> | % if ( $conf->exists('show_ss') && !$pre ) { -SS# | -+ | <% mt('SS#') |h %> | +% } elsif ( !$pre ) { - | + | % } - - | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Company | -- > - | -||||||||||||||||
+ <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum) + ? $r : '' %>Email address(es) + | ++ + | +||||||||||||||||
<%$r%>Address | -- > - | -||||||||||||||||
- | - > - | -||||||||||||||||
<%$r%>City | -- > - | -<%$r%>State | -- <% include('select-county.html', %select_hash ) %> - <% include('select-state.html', %select_hash ) %> - | -<%$r%>Zip | -- > - | -||||||||||||
<%$r%>Country | -<% include('select-country.html', %select_hash ) %> | -||||||||||||||||
<% $daytime_label %> | -- > - | -||||||||||||||||
<% $night_label %> | -- > - | -||||||||||||||||
Fax | -- > + | <% $stateid_label %> | +<%$style%>> | +<% $stateid_state_label %> | +<& /elements/select-state.html, + 'state' => $cust_main->stateid_state, + 'country' => $cust_main->country, + 'prefix' => 'stateid_', + 'onchange' => $onchange, + 'disabled' => $disabled, + 'style' => \@style, + &> |
+ <%$style%>>
+ <% $daytime_label %> + |
+ + |
+ <%$style%>>
+ <% $night_label %> + |
+ + |
+ <%$style%>>
+ <% $mobile_label %> + |
+