From 6af6ee372687d8218717eb28f93cea3b6582b5a6 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 6 May 2014 18:58:13 +0000 Subject: [PATCH] adding checkboxes and subjects to forms add to temp storage form new checkboxes make them yes or no in emails update subject for emails --- Toolkit/Contacts/ContactUs.php | 10 ++++++++++ Toolkit/Contacts/ServiceRequest.php | 2 +- Toolkit/Contacts/TempStorageQuickLaunch.php | 18 +++++++++++------- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/Toolkit/Contacts/ContactUs.php b/Toolkit/Contacts/ContactUs.php index 96e3409..20f3141 100755 --- a/Toolkit/Contacts/ContactUs.php +++ b/Toolkit/Contacts/ContactUs.php @@ -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')) { diff --git a/Toolkit/Contacts/ServiceRequest.php b/Toolkit/Contacts/ServiceRequest.php index 7233a3e..60d805d 100755 --- a/Toolkit/Contacts/ServiceRequest.php +++ b/Toolkit/Contacts/ServiceRequest.php @@ -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 * diff --git a/Toolkit/Contacts/TempStorageQuickLaunch.php b/Toolkit/Contacts/TempStorageQuickLaunch.php index ea5c5d6..5b8ba11 100755 --- a/Toolkit/Contacts/TempStorageQuickLaunch.php +++ b/Toolkit/Contacts/TempStorageQuickLaunch.php @@ -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', -- 2.17.1