adding checkboxes and subjects to forms
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 6 May 2014 18:58:13 +0000 (18:58 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 6 May 2014 18:58:13 +0000 (18:58 +0000)
add to temp storage form new checkboxes
make them yes or no in emails
update subject for emails

Toolkit/Contacts/ContactUs.php
Toolkit/Contacts/ServiceRequest.php
Toolkit/Contacts/TempStorageQuickLaunch.php

index 96e3409..20f3141 100755 (executable)
@@ -842,6 +842,16 @@ class Toolkit_Contacts_ContactUs
             $page->formData['mail_ok']['element']
                 = ($page->formData['mail_ok']['element']) ? 'Yes' : 'No';
         }
+        if ($this->elementExists('service_required')) {
+            $page->formData['service_required']['element']
+                = ($page->formData['service_required']['element']) ? 'Yes' : 'No';
+        }
+
+        if ($this->elementExists('quick_launch')) {
+            $page->formData['quick_launch']['element']
+                = ($page->formData['quick_launch']['element']) ? 'Yes' : 'No';
+        }
+
 
         if (defined("MEMBERS_DB") && MEMBERS_DB) {
             if ($this->elementExists('members')) {
index 7233a3e..60d805d 100755 (executable)
@@ -66,7 +66,7 @@ class Toolkit_Contacts_ServiceRequest
      * @var    string
      * @access protected
      */
-    public $subject = "ENews Signup Form from website";
+    public $subject = "Service Request Form from website";
     /**
      * Message to display if the form is successfully submitted
      *
index ea5c5d6..5b8ba11 100755 (executable)
@@ -66,7 +66,7 @@ class Toolkit_Contacts_TempStorageQuickLaunch
      * @var    string
      * @access protected
      */
-    public $subject = "ENews Signup Form from website";
+    public $subject = "Temp Storage Quick Launch Form from website";
     /**
      * Message to display if the form is successfully submitted
      *
@@ -260,9 +260,11 @@ class Toolkit_Contacts_TempStorageQuickLaunch
             'display' => 'Make and Model of Vessel'
         );
         $e[] = array(
-            'type'    => 'header',
-            'name'    => 'serviceHdr_rmv',
-            'display' => 'Service Required'
+            'type'    => 'checkbox',
+            'req'     => false,
+            'name'    => 'service_required',
+            'display' => 'Service Required',
+            'opts'    => 'Yes'
         );
         $e[] = array(
             'type'    => 'text',
@@ -294,9 +296,11 @@ class Toolkit_Contacts_TempStorageQuickLaunch
             'appendName' => false
         );
         $e[] = array(
-            'type'    => 'header',
-            'name'    => 'launchHdr_rmv',
-            'display' => 'Quick Launch'
+            'type'    => 'checkbox',
+            'req'     => false,
+            'name'    => 'quick_launch',
+            'display' => 'Quick Launch',
+            'opts'    => 'Yes'
         );
         $e[] = array(
             'type'    => 'text',