X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=07aaa69f0193e9a5ff791b13cdf532cb83c836bd;hb=7aad2eb29c444625fd1130f4ed37d89a7da2c027;hp=f21b8ad014a8540809f6cce2778f7322272fd558;hpb=a661ced3f9f678a645780eaa0b183d2de5f100fa;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index f21b8ad01..07aaa69f0 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 + <%$r%><% $opt{'address1_label'} || 'Address' %> <% $style %> @@ -31,13 +33,13 @@ Example: - * Unit # + >* >Unit # <% $style %> @@ -47,7 +49,7 @@ Example: <%$r%>City - + ><%$r%>County - - <% include('/elements/select-county.html', %select_hash ) %> - - <%$r%>State - + <% include('/elements/select-county.html', %select_hash ) %> + <%$r%>State + <% include('/elements/select-state.html', %select_hash ) %> <%$r%>Zip @@ -81,11 +81,21 @@ Example: <%$r%>Country - <% include('/elements/select-country.html', %select_hash ) %> + <% include('/elements/select-country.html', %select_hash ) %> % if ( !$pre ) { +% } else { +% if ( $pre eq 'ship_' && $conf->exists('cust_main-require_censustract') ) { + 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 =