updates for text
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 19 Dec 2014 20:43:45 +0000 (15:43 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 19 Dec 2014 20:43:45 +0000 (15:43 -0500)
take care of notice in form template
add traverse city to the locations
update grid sizes for the elements in that row

config/settings1.php
views/front/formTemplate.php

index 56df04d..f2afda6 100644 (file)
@@ -319,7 +319,7 @@ $location_preference = [
     'type'  => 'checkbox',
     'name'  => 'location_preference',
     'label' => 'Location Preference',
-    'grid' => 6,
+    'grid' => 8,
     'req'   => false,
     'opts'  => [[
         'name' => 'location_preference_petoskey',
@@ -333,13 +333,17 @@ $location_preference = [
         'name' => 'location_preference_gaylord',
         'label' => 'Gaylord',
         'value' => 'Gaylord'
+    ],[
+        'name' => 'location_preference_traverse',
+        'label' => 'Traverse City',
+        'value' => 'Traverse City'
     ]]
 ];
 $do_you_have_building_exp = [
     'type'  => 'radio',
     'name'  => 'do_you_have_building_exp',
     'label' => 'Do you have experience in the building industry?',
-    'grid' => 6,
+    'grid' => 4,
     'req'   => true,
     'opts'  => [[
         'name' => 'do_you_have_building_exp_yes',
index 98802be..b3c5728 100644 (file)
                                         type="radio"
                                         value="<?php if (isset($option['value'])) { echo $option['value'];}?>"
                                         <?php
-                                        $radioOptionValue = filter_var($field['value'], FILTER_VALIDATE_INT);
+                                        $radioOptionValue = (isset($field['value']))
+                                            ? filter_var($field['value'], FILTER_VALIDATE_INT)
+                                            : false;
                                         if (isset($field['value']) && $radioOptionValue === $option['value']) {
                                             echo 'checked';
                                         }?> />