X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main%2Fcontact.html;h=01d024ca2b48238dd5438615dd9de8ed6ffc29c3;hb=3cc1613c7ceb89b056462f22ce5b07f3dc444ee3;hp=3bed54b859b6bd47147c25252ad824b5c37e1f26;hpb=f3717767d19f9da888e190f87a04dfa245d658b4;p=freeside.git diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index 3bed54b85..01d024ca2 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -2,9 +2,9 @@ <%$r%>Contact name
(last, first) - - > , - > + + <%$style%>> , + <%$style%>> % if ( $conf->exists('show_ss') && !$pre ) { @@ -21,7 +21,7 @@ Company - > + <%$style%>> @@ -30,6 +30,7 @@ 'object' => $cust_main, 'onchange' => $onchange, 'disabled' => $disabled, + 'style' => \@style, 'same_checked' => $opt{'same_checked'}, 'geocode' => $opt{'geocode'}, 'censustract' => $opt{'censustract'}, @@ -39,21 +40,21 @@ <% $daytime_label %> - > + <%$style%>> <% $night_label %> - > + <%$style%>> Fax - > + <%$style%>> @@ -61,7 +62,7 @@ <% $stateid_label %> - > + <%$style%>> <% $stateid_state_label %> <% include('/elements/select-state.html', 'state' => $cust_main->stateid_state, @@ -69,6 +70,7 @@ 'prefix' => 'stateid_', 'onchange' => $onchange, 'disabled' => $disabled, + 'style' => \@style, ) %> @@ -90,6 +92,10 @@ my $cust_main = $opt{'cust_main'}; my $pre = $opt{'pre'}; my $onchange = $opt{'onchange'}; my $disabled = $opt{'disabled'}; +my @style = ( $opt{'style'} ? @{ $opt{'style'} } : () ); + +#push @style, 'background-color: #dddddd' if $disabled; +my $style = scalar(@style) ? 'STYLE="'. join(';', @style). '"' : ''; my $conf = new FS::Conf; @@ -111,6 +117,8 @@ $cust_main->set($pre.'state', $statedefault ) $cust_main->set('stateid_state', $cust_main->state ) unless $pre || $cust_main->get('stateid_state'); +$opt{geocode} ||= $cust_main->get('geocode'); + if ( $conf->exists('cust_main-require_censustract') ) { $opt{censustract} ||= $cust_main->censustract; }