X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fconfirm-censustract.html;h=0f115e5d7c8c79fbd9b3eaade4b01c7a5139e360;hp=880cade3a3086db37755be40fbf283036ba3b13a;hb=11bbf29de447fe39e9d7155fe280a0df70fa8c3c;hpb=8d6ea7d8fddec3fd471a0e68f297d20e191c6f11 diff --git a/httemplate/misc/confirm-censustract.html b/httemplate/misc/confirm-censustract.html index 880cade3a..0f115e5d7 100644 --- a/httemplate/misc/confirm-censustract.html +++ b/httemplate/misc/confirm-censustract.html @@ -1,3 +1,10 @@ +% if ( !$error and !$new_tract ) { +% # then set_censustract returned nothing +% # because it's not relevant for this address +% # so output nothing (forces confirm_censustract() to continue) +% $m->clear_buffer; +% $m->abort; +% }

% if ( $error ) { Census tract error @@ -6,16 +13,17 @@ Census tract error Confirm census tract % }
-<% $location{address1} %> <% $location{address2} %>
-<% $location{city} %>, <% $location{state} %> <% $location{zip} %>
+<% $location{address1} |h %> <% $location{address2} |h %>
+<% $location{city} |h %>, <% $location{state} |h %> <% $location{zip} |h %>

-% my $querystring = "census_year=$year&latitude=".$cache->get('latitude').'&longitude='.$cache->get('longitude'); -Map service module location
-% $querystring = "census_year=$year&zip_code=".$cache->get('zip'); -get('zip'); +Map zip code center

+ @@ -24,9 +32,9 @@ Confirm census tract % if ( $error ) { - + % } else { - + % } @@ -36,30 +44,43 @@ Confirm census tract Use entered census tract -% if ( !$error ) { - - - -% } else { # don't show a button to use the calculated value - + -% }
Entered census tract
<% $old_tract %><% $error %>
<% $error %>
<% $new_tract %>
<% $new_tract %>
- -
+ +
+
+
+ <%init> local $SIG{__DIE__}; #disable Mason error trap