From 777a6997a004dc4ea99bccabe494f77f114db1a3 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 23 Jan 2014 14:27:40 -0800 Subject: make census tract UI behave more like other cust_location fields, #23497 --- httemplate/misc/confirm-censustract.html | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'httemplate/misc') diff --git a/httemplate/misc/confirm-censustract.html b/httemplate/misc/confirm-censustract.html index 9e0af498f..880cade3a 100644 --- a/httemplate/misc/confirm-censustract.html +++ b/httemplate/misc/confirm-censustract.html @@ -6,6 +6,9 @@ Census tract error Confirm census tract % }
+<% $location{address1} %> <% $location{address2} %>
+<% $location{city} %>, <% $location{state} %> <% $location{zip} %>
+
% my $querystring = "census_year=$year&latitude=".$cache->get('latitude').'&longitude='.$cache->get('longitude'); Map service module location
@@ -29,13 +32,14 @@ Confirm census tract +% if ( !$error ) { @@ -47,6 +51,14 @@ Confirm census tract +% } else { # don't show a button to use the calculated value + + + + +% } <%init> @@ -61,11 +73,7 @@ warn $cgi->param('q') if $DEBUG; my $q = decode_json($cgi->param('q')) or die "bad argument '".$cgi->param('q')."'"; -my $pre = ''; -if ($q->{billship}) { - # this still isn't quite correct - $pre = $q->{'same'} ? 'bill_' : 'ship_'; -} +my $pre = $q->{prefix} || ''; my %location = ( map { $_ => $q->{$pre.$_} } qw( company address1 address2 city state zip country latitude longitude ) -- cgit v1.2.1