X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=a820bf2a6a9c006bff52083af34e9fdd6efcfc16;hb=5fa459e35a04b69cbdc6b5b938eabcbc1bac6c74;hp=767231856483e992bc14ca2a7d8ec1af34820efe;hpb=01629c3c934f1f6fd2ab9de5f7638f671fd59791;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 767231856..a820bf2a6 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -11,8 +11,10 @@ Example: 'no_asterisks' => 0, #set true to disable the red asterisks next #to required fields 'address1_label' => 'Address', #label for address + 'enable_coords' => 1, #show latitude/longitude fields 'enable_district' => 1, #show tax district field 'enable_censustract' => 1, #show censustract field + ) @@ -31,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'), ) %> @@ -162,7 +164,7 @@ Example: NAME = "<%$pre%>zip" ID = "<%$pre%>zip" VALUE = "<% $object->get('zip') |h %>" - SIZE = 10 + SIZE = 11 onChange = "<% $onchange %>" <% $disabled %> <% $style %> @@ -175,8 +177,9 @@ Example: <% include('/elements/select-country.html', %select_hash ) %> +% if ( $opt{enable_coords} ) { - <% mt('Latitude') |h %> + <% mt('Latitude') |h %> +% } else { +% foreach (qw(latitude longitude)) { + +% } +% } + - % if ( $opt{enable_censustract} ) { + Census tract + NAME="enter_censustract" + VALUE="<% $object->censustract |h %>"> <% '(automatic)' %> -% } else { - -% } -% if ( $conf->config('tax_district_method') ) { +% } +% if ( $opt{enable_district} and $conf->config('tax_district_method') ) { -% if ( $opt{enable_district} ) { Tax district + ID="<%$pre%>district" + VALUE="<% $object->district |h %>"> <% '(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 district addr_clean) ) { + % } +%# Placeholders + + + + <%init>