X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Flocation.html;h=5478e1e1e94f0a51be1f4dfc0e503c5bbce01092;hb=71f6c7a310cc5482d36d1592a4500b5a3a47e90e;hp=6691bc84e9fca16c8da82360067950fa443cd82a;hpb=26119738eaf2b519d91c855c23986f873303887f;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 6691bc84e..5478e1e1e 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -9,6 +9,7 @@ Example: '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 @@ -23,7 +24,7 @@ Example: NAME = "<%$pre%>address1" ID = "<%$pre%>address1" VALUE = "<% $object->get($pre.'address1') |h %>" - SIZE = 58 + SIZE = 54 onChange = "<% $onchange %>" <% $disabled %> <% $style %> @@ -38,7 +39,7 @@ Example: NAME = "<%$pre%>address2" ID = "<%$pre%>address2" VALUE = "<% $object->get($pre.'address2') |h %>" - SIZE = 58 + SIZE = 54 onChange = "<% $onchange %>" <% $disabled %> <% $style %> @@ -48,22 +49,11 @@ Example: <%$r%>City - - - <% $style %> - > - + <% include('/elements/city.html', %select_hash) %> ><%$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 @@ -82,11 +72,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> @@ -114,7 +114,7 @@ $object->set($pre.'state', $statedefault ) || $object->get($pre.'country') ne $countrydefault; my @style = (); -push @style, 'background-color: #dddddd"' if $disabled; +push @style, 'background-color: #dddddd' if $disabled; my @address2_label_style = (); push @address2_label_style, 'visibility:hidden' @@ -126,7 +126,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 = @@ -143,6 +143,7 @@ my $county_style = : ''; my %select_hash = ( + 'city' => $object->get($pre.'city'), 'county' => $object->get($pre.'county'), 'state' => $object->get($pre.'state'), 'country' => $object->get($pre.'country'),