X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=5478e1e1e94f0a51be1f4dfc0e503c5bbce01092;hb=9d77a21db3642ca66d9a0e545b804b7e6b4090ee;hp=1bdbf9604b8a07dd95d7d1a0b2add003fe264115;hpb=55f003404af6a2416571138356d11c5ad3755e58;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 1bdbf9604..5478e1e1e 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -49,16 +49,7 @@ Example: <%$r%>City - - - <% $style %> - > - + <% include('/elements/city.html', %select_hash) %> ><%$r%>County <% include('/elements/select-county.html', %select_hash ) %> <%$r%>State @@ -87,7 +78,15 @@ Example: % if ( !$pre ) { % } else { - +% if ( $pre eq 'ship_' && $conf->exists('cust_main-require_censustract') ) { + Census tract
(automatic) + + + + +% } else { + +% } % } <%init> @@ -115,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' @@ -144,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'),