diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-26 20:15:16 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-26 20:15:16 +0000 |
commit | fd658b05fe1c2fc1ae2fdd75f3dcd24576e16e23 (patch) | |
tree | 002202dfe4384e71d132b71a243fee3b8536842c /web/index.cgi | |
parent | 339c3e2adf801d19ac7c98d429d98f3a7f4a3ae1 (diff) |
Output lon/lat fields in correct places.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-x | web/index.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/web/index.cgi b/web/index.cgi index e801e076b..f8f119f54 100755 --- a/web/index.cgi +++ b/web/index.cgi @@ -610,6 +610,8 @@ please specify the closest point on land.')) unless %$all_councils; my $form_action = Cobrand::url($cobrand, '/', $q); $vars{form_start} = <<EOF; <form action="$form_action" method="post" name="mapSkippedForm"$enctype> +<input type="hidden" name="latitude" value="$latitude"> +<input type="hidden" name="longitude" value="$longitude"> <input type="hidden" name="pc" value="$input_h{pc}"> <input type="hidden" name="skipped" value="1"> $cobrand_form_elements @@ -722,10 +724,6 @@ photo of the problem if you have one), etc.')); $vars{text_help} .= $q->p(_('Please fill in details of the problem below.')); } - $vars{text_help} .= ' -<input type="hidden" name="latitude" id="fixmystreet.latitude" value="' . $latitude . '"> -<input type="hidden" name="longitude" id="fixmystreet.longitude" value="' . $longitude . '">'; - if (@errors) { $vars{errors} = '<ul class="error"><li>' . join('</li><li>', @errors) . '</li></ul>'; } |