From daaea0b447f50cb9d8bc8234afdf9341b8893d5b Mon Sep 17 00:00:00 2001 From: Eric Rasmussen <erasmussen2@unl.edu> Date: Mon, 11 Apr 2011 20:38:08 +0000 Subject: [PATCH] Alter locations; Add checkbox for agreement with guidelines --- www/landscape/outdoorevents/index.php | 32 +++++++++++++++++++-------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/www/landscape/outdoorevents/index.php b/www/landscape/outdoorevents/index.php index 2a3e87f..b697a1a 100644 --- a/www/landscape/outdoorevents/index.php +++ b/www/landscape/outdoorevents/index.php @@ -7,7 +7,7 @@ if (file_exists(dirname(__FILE__).'/../../../config-landscape-outdoorevents.inc. if (!empty($_POST)) { $error_msg = ''; - if (in_array($_POST['location'], array("lied","union","meier","sheldon","wick"))) { + if (in_array($_POST['location'], array("lied","meier","sheldon","wick"))) { $error_msg .= 'This location\'s outdoor events are not arranged through Landscape Services. Please contact them directly. <a href="http://www.unl.edu/unlspecialevents">Contact info available here</a>'; } if (($_POST['location'] == 'other' && empty($_POST['location_other'])) || @@ -15,7 +15,7 @@ if (!empty($_POST)) { empty($_POST['enddate_month']) || empty($_POST['enddate_day']) || empty($_POST['title']) || empty($_POST['starttime_hour']) || empty($_POST['endtime_hour']) || empty($_POST['attendance']) || empty($_POST['name']) || empty($_POST['email']) || empty($_POST['streetaddress']) || empty($_POST['city']) || empty($_POST['state']) || empty($_POST['zip']) || - empty($_POST['business']) + empty($_POST['business']) || empty($_POST['weather']) || empty($_POST['agree']) ) { $error_msg .= 'Please fill out all required fields'; } @@ -100,7 +100,6 @@ $page->head .= <<<EOF WDN.initializePlugin('notice'); $('#location').change(function() { if ($(this).val() == 'lied' || - $(this).val() == 'union' || $(this).val() == 'meier' || $(this).val() == 'sheldon' || $(this).val() == 'wick') { @@ -276,12 +275,12 @@ $page->maincontentarea .= <<<EOF </label> <select name="location" id="location"> <option value="none"></option> + <option value="foodindustrycomplex">Greenspace North of Food Industry Complex</option> + <option value="kauffman">Kauffman Center North</option> <option value="lied">Lied Center Plaza</option> - <option value="love">Love Library Memorial Garden</option> <option value="maxwell">Maxwell Arboretum</option> - <option value="union">Nebraska Union Plaza</option> <option value="meier">Nebraska Union Meier Commons</option> - <option value="porch">The Porch (East Campus)</option> + <option value="porch">The Porch</option> <option value="sheldon">Sheldon Memorial Art Gallery & Sculpture Garden</option> <option value="wick">Wick Alumni Center and Holling Garden</option> <option value="other">Other...</option> @@ -528,7 +527,7 @@ $page->maincontentarea .= <<<EOF <ol style="clear:left;"> <li style="float:left"> <label for="litter"> - Recycling Con + Recycling Containers </label> <input type="checkbox" id="recycle" name="recycle" /> </li> @@ -601,8 +600,9 @@ $page->maincontentarea .= <<<EOF <ol> <li> <label for="weather"> - Bad Weather Contingency - <span class="helper">Alternative plans you have in case of bad weather</span> + <span class="required">*</span> + Contingency or Alternate Plans + <span class="helper">for either bad weather or condition of turf due to weather</span> </label> <input type="text" id="weather" name="weather" /> </li> @@ -612,6 +612,20 @@ $page->maincontentarea .= <<<EOF </label> <textarea id="comments" name="comments" rows="4" cols="auto"></textarea> </li> + <li> + <fieldset> + <legend> + <span class="required">*</span> + You must read and agree to the <br><a href="http://bf.unl.edu/policies/fmp/GuidelinesUseUNLCampusOutdoorSpaces.shtml" target="_blank" class="external">Guidelines for Use of UNL Campus Outdoor Spaces</a> + </legend> + <ol> + <li> + <input type="checkbox" id="agree" name="agree" /> + <label for="agree">I agree</label> + </li> + </ol> + </fieldset> + </li> </ol> </fieldset> <input type="submit" name="submit" value="Submit" id="submit" /> -- GitLab