X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=873fe16213fac3538d8729527a418e9c4bd70ac7;hb=a72a10f754f7465121d6137bb3dcee0a21ea6443;hp=767231856483e992bc14ca2a7d8ec1af34820efe;hpb=f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7;p=freeside.git diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 767231856..873fe1621 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} ) { + Tax district + VALUE="<% $object->district |h %>"> <% '(automatic)' %> + % } 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) ) { + +% } +%# Placeholders + + <%init> my %opt = @_;