X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=3c8e973ed021b13af9d91621554a1c23b270bf07;hb=49ff577b9fbb4b017f0652cdfe567b023d7ea4de;hp=a7803c875c938838a7e75bbcee1f44db31c47a98;hpb=b6260b4f39cf34b9e0e5b8560ef88c8881ba0766;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index a7803c875..3c8e973ed 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -169,15 +169,14 @@ Example: -% if ($conf->exists('city_not_required')) { - -%} else { - <<%$th%> ALIGN="right"><%$r%><% mt('City') |h %>> + <<%$th%> ALIGN="right"> +% unless ($conf->exists('cust_main-no_city_in_address')) { + <% $r %><% mt('City') |h %> +% } + > <% include('/elements/city.html', %select_hash, 'text_style' => \@style ) %> - <<%$th%> ALIGN="right" WIDTH="1" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County> <% include('/elements/select-county.html', %select_hash ) %> -% } <<%$th%> ALIGN="right" WIDTH="1"><%$r%><% mt('State') |h %>> <% include('/elements/select-state.html', %select_hash ) %> @@ -246,13 +245,13 @@ Example: % } % if ( $opt{enable_district} and $conf->config('tax_district_method') ) { - Tax district + Tax district - <% '(automatic)' %> + <% '(automatic)' %> % } else { @@ -262,8 +261,9 @@ Example: %# For address standardization: %# keep a clean copy of the address so we know if we need %# to re-standardize -% foreach (qw(address1 city state country zip latitude -% longitude censustract district addr_clean) ) { +% foreach (qw(locationname address1 city state country zip latitude +% longitude censustract district addr_clean +% ) ) { <& hidden.html, field => 'old_'.$pre.$_, value => $object->get($_) &> % } %# Placeholders @@ -290,7 +290,7 @@ Example: var clear_coords_on_change = [ '<%$pre%>address1', '<%$pre%>address2', - '<%$pre%>city', + <% $conf->exists('cust_main-no_city_in_address') ? '' : qq('${pre}city',) %> '<%$pre%>state', '<%$pre%>zip', '<%$pre%>country'