diff options
author | Mark Wells <mark@freeside.biz> | 2013-12-31 17:35:09 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2013-12-31 17:35:09 -0800 |
commit | acbc7e3c55a3d5a0e9999b0630653ad510d4b19a (patch) | |
tree | 41791bd264725fb239567c6fca8bc9d156c0c698 /httemplate/misc | |
parent | 1564f23d66008e6167af8b517dce364127d34c3c (diff) |
enable census tract lookup and manual entry in package order/change and location edit, #26722
Diffstat (limited to 'httemplate/misc')
-rwxr-xr-x | httemplate/misc/change_pkg.cgi | 6 | ||||
-rw-r--r-- | httemplate/misc/confirm-censustract.html | 6 | ||||
-rw-r--r-- | httemplate/misc/order_pkg.html | 3 |
3 files changed, 11 insertions, 4 deletions
diff --git a/httemplate/misc/change_pkg.cgi b/httemplate/misc/change_pkg.cgi index ce8348000..5b4a3dea9 100755 --- a/httemplate/misc/change_pkg.cgi +++ b/httemplate/misc/change_pkg.cgi @@ -80,8 +80,10 @@ <& /elements/standardize_locations.html, - 'form' => "OrderPkgForm", - 'callback' => 'document.OrderPkgForm.submit();', + 'form' => "OrderPkgForm", + 'with_census' => 1, + 'with_census_functions' => 1, + 'callback' => 'document.OrderPkgForm.submit()', &> <INPUT NAME = "submitButton" diff --git a/httemplate/misc/confirm-censustract.html b/httemplate/misc/confirm-censustract.html index 6a11617e7..9e0af498f 100644 --- a/httemplate/misc/confirm-censustract.html +++ b/httemplate/misc/confirm-censustract.html @@ -61,7 +61,11 @@ warn $cgi->param('q') if $DEBUG; my $q = decode_json($cgi->param('q')) or die "bad argument '".$cgi->param('q')."'"; -my $pre = $q->{'same'} ? 'bill_' : 'ship_'; +my $pre = ''; +if ($q->{billship}) { + # this still isn't quite correct + $pre = $q->{'same'} ? 'bill_' : 'ship_'; +} my %location = ( map { $_ => $q->{$pre.$_} } qw( company address1 address2 city state zip country latitude longitude ) diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 03531bf4d..b06f9622c 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -176,8 +176,9 @@ <& /elements/standardize_locations.html, 'form' => "OrderPkgForm", - 'callback' => 'document.OrderPkgForm.submit();', + 'callback' => 'document.OrderPkgForm.submit()', 'with_census' => 1, + 'with_census_functions' => 1, &> % } |