diff options
author | Mark Wells <mark@freeside.biz> | 2012-11-06 12:48:41 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-11-06 12:49:11 -0800 |
commit | 468c9e660eb0edb2033f0f8dbb4458f20280082c (patch) | |
tree | 9a87abfbfad9c820598c3a8d773f35c421c2bb38 /httemplate/elements/location.html | |
parent | 2b2aa5664742a134da11862a7cedb37d25524423 (diff) |
improved address standardization, #13763
Diffstat (limited to 'httemplate/elements/location.html')
-rw-r--r-- | httemplate/elements/location.html | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 5c7c888de..de844e465 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -33,7 +33,7 @@ Example: 'options' => \@location_kind_options, 'labels' => $location_kind_labels, 'curr_value' => scalar($cgi->param('location_kind')) - || $object->get($pre.'location_kind'), + || $object->get('location_kind'), ) %> </TD> @@ -164,7 +164,7 @@ Example: NAME = "<%$pre%>zip" ID = "<%$pre%>zip" VALUE = "<% $object->get('zip') |h %>" - SIZE = 10 + SIZE = 11 onChange = "<% $onchange %>" <% $disabled %> <% $style %> @@ -206,23 +206,22 @@ Example: <INPUT TYPE="hidden" NAME="<%$pre%>coord_auto" VALUE="<% $object->coord_auto %>"> <INPUT TYPE="hidden" NAME="<%$pre%>geocode" VALUE="<% $object->geocode %>"> +<INPUT TYPE="hidden" NAME="<%$pre%>censustract" VALUE="<% $object->censustract %>"> <INPUT TYPE="hidden" NAME="<%$pre%>censusyear" VALUE="<% $object->censusyear %>"> -<TR> % if ( $opt{enable_censustract} ) { +<TR> <TD ALIGN="right">Census tract</TD> <TD COLSPAN=8> <INPUT TYPE="text" SIZE=15 - NAME="<%$pre%>censustract" + NAME="enter_censustract" VALUE="<% $object->censustract %>"> <% '(automatic)' %> </TD> -% } else { - <INPUT TYPE="hidden" NAME="<%$pre%>censustract" VALUE="<% $object->censustract %>"> -% } </TR> +% } % if ( $conf->config('tax_district_method') ) { - <TR> % if ( $opt{enable_district} ) { + <TR> <TD ALIGN="right">Tax district</TD> <TD COLSPAN=8> <INPUT TYPE="text" SIZE=15 @@ -230,12 +229,22 @@ Example: VALUE="<% $object->district %>"> <% '(automatic)' %> </TD> + </TR> % } else { <INPUT TYPE="hidden" NAME="<%$pre%>district" VALUE="<% $object->district %>"> % } - </TR> % } +%# 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) ) { +<INPUT TYPE="hidden" NAME="old_<%$pre.$_%>" ID="old_<%$pre.$_%>" VALUE="<% $object->get($_) |h%>"> +% } +%# Placeholders +<INPUT TYPE="hidden" NAME="<%$pre%>cachenum" VALUE=""> +<INPUT TYPE="hidden" NAME="<%$pre%>addr_clean" VALUE=""> <%init> my %opt = @_; |