X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=4750b687dc99528d70c33393b654d1ace1ffa2f4;hp=b0b30d3b101fd98b2ea72ba372433cace4621dab;hb=4bd9d3d9dc5325f0d7bd498e457140b15d01866c;hpb=705f7d564546e7211844773f3566a89f0ae87a2c diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index b0b30d3b1..4750b687d 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -3,26 +3,28 @@ Example: include( '/elements/location.html', - 'object' => $cust_main, # or $cust_location - 'prefix' => $pre, #only for cust_main objects - 'onchange' => $javascript, - 'disabled' => $disabled, - 'same_checked' => $same_checked, - 'geocode' => $geocode, #passed through - 'no_asterisks' => 0, #set true to disable the red asterisks next - #to required fields + 'object' => $cust_main, # or $cust_location + 'prefix' => $pre, #only for cust_main objects + 'onchange' => $javascript, + 'disabled' => $disabled, + 'same_checked' => $same_checked, + 'geocode' => $geocode, #passed through + 'censustract' => $censustract, #passed through + 'no_asterisks' => 0, #set true to disable the red asterisks next + #to required fields + 'address1_label' => 'Address', #label for address ) - <%$r%>Address + <<%$th%> ALIGN="right"><%$r%><% $opt{'address1_label'} || 'Address' %>> <% $style %> @@ -31,13 +33,13 @@ Example: - * Unit # + >* >Unit # <% $style %> @@ -46,8 +48,8 @@ Example: - <%$r%>City - + <<%$th%> ALIGN="right"><%$r%>City> + <% $style %> > - - ><%$r%>County - - <% include('/elements/select-county.html', %select_hash ) %> - <%$r%>State - + <<%$th%> ALIGN="right" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County> + <% include('/elements/select-county.html', %select_hash ) %> + <<%$th%> ALIGN="right" WIDTH="1"><%$r%>State> + <% include('/elements/select-state.html', %select_hash ) %> - <%$r%>Zip + <<%$th%>><%$r%>Zip> - <%$r%>Country - <% include('/elements/select-country.html', %select_hash ) %> + <<%$th%> ALIGN="right"><%$r%>Country> + <% include('/elements/select-country.html', %select_hash ) %> % if ( !$pre ) { +% } else { +% if ( $pre eq 'ship_' && $conf->exists('cust_main-require_censustract') ) { + <<%$th%> ALIGN="right">Census tract
(automatic)> + + + + +% } else { + +% } % } <%init> @@ -125,7 +135,7 @@ my @counties = counties( $object->get($pre.'state'), $object->get($pre.'country'), ); my @county_style = (); -push @county_style, 'visibility:hidden' +push @county_style, 'display:none' # 'visibility:hidden' unless scalar(@counties) > 1; my $style = @@ -151,4 +161,6 @@ my %select_hash = ( 'style' => \@style, ); +my $th = $opt{'no_bold'} ? 'TD' : 'TH'; +