From ecfa27ea13f03b5b7eea57be9bb6687e5a43944e Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 20 May 2016 08:29:40 -0400 Subject: [PATCH] Setup lat lon fields on add your event form Need to test that the form is not redoing lat lon from the address if there's a lat lon already set. --- Toolkit/Events/AddCommonEventForm.php | 31 ++++++++++++++++----------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/Toolkit/Events/AddCommonEventForm.php b/Toolkit/Events/AddCommonEventForm.php index 4fc56f0..2005e37 100644 --- a/Toolkit/Events/AddCommonEventForm.php +++ b/Toolkit/Events/AddCommonEventForm.php @@ -425,18 +425,6 @@ class Toolkit_Events_AddCommonEventForm Map It' ); - $e[] = array( - 'type' => 'hidden', - 'req' => false, - 'name' => 'lat', - 'opts' => array('id' => 'lat') - ); - $e[] = array( - 'type' => 'hidden', - 'req' => false, - 'name' => 'lon', - 'opts' => array('id' => 'lon') - ); $e[] = array( 'type' => 'text', 'req' => true, @@ -471,6 +459,25 @@ class Toolkit_Events_AddCommonEventForm 'display' => 'ZIP', 'opts' => array('id' => 'zip') ); + $e[] = array( + 'type' => 'header', + 'name' => 'gpsCordinates_rmv', + 'display' => 'GPS Location' + ); + $e[] = array( + 'type' => 'text', + 'req' => false, + 'name' => 'lat', + 'display' => 'Latitude', + 'opts' => array('id' => 'lat') + ); + $e[] = array( + 'type' => 'text', + 'req' => false, + 'name' => 'lon', + 'display' => 'Longitude', + 'opts' => array('id' => 'lon') + ); $e[] = array( 'type' => 'header', 'name' => 'eventContactHeader_rmv', -- 2.17.1