From: Steve Sutton Date: Fri, 20 May 2016 12:29:40 +0000 (-0400) Subject: Setup lat lon fields on add your event form X-Git-Tag: v1.5.0^2^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ecfa27ea13f03b5b7eea57be9bb6687e5a43944e;p=web%2FKeweenaw.git 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. --- 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',