X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=799531e01a0c91d40130ac7eecff93e58d6c06d8;hb=0b25e1048d9d41cb92da42b99e0982910539f320;hp=0f844531d7b7ac29da2230afdc5e9fbe61626603;hpb=f06a0610477b0ba8e1931722c3105b880fbc35c3;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 0f844531d..799531e01 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -179,7 +179,7 @@ Example: % if ( $opt{enable_coords} ) { - <% mt('Latitude') |h %> + <% mt('Latitude') |h %> % } else { % foreach (qw(latitude longitude)) { - + % } % } @@ -213,38 +213,75 @@ Example: Census tract <% '(automatic)' %> % } -% if ( $conf->config('tax_district_method') ) { -% if ( $opt{enable_district} ) { +% if ( $opt{enable_district} and $conf->config('tax_district_method') ) { Tax district <% '(automatic)' %> -% } else { - -% } +% } else { + % } %# 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 addr_clean) ) { +% longitude censustract district addr_clean) ) { % } %# Placeholders + + + <%init> my %opt = @_;