X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=3c8e973ed021b13af9d91621554a1c23b270bf07;hp=357a91db74bdfb852c1c1ea963edf91a6589b3fb;hb=ff27c3f36240aee48ed50153dd5d8fe3ac3f2443;hpb=ec7e8155fce544f19f2b6734476ed6db8c200aa9 diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 357a91db7..3c8e973ed 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -44,7 +44,7 @@ Example: % if ( $label_prefix eq '_location' ) { - <% $opt{'locationname_label'} || emt('Location ID') %> + <% $opt{'locationname_label'} || emt('Location ID') %> - >* >Unit # + >* >Unit # -% 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 ) %> @@ -203,7 +202,7 @@ Example: % if ( $opt{enable_coords} ) { - <% mt('Latitude') |h %> + <% mt('Latitude') |h %> <% $style %> > - <% mt('Longitude') |h %> + <% mt('Longitude') |h %> - Census tract + Census tract - <% '(automatic)' %> + <% '(automatic)' %> % } % 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'