Skip to content

Commit

Permalink
added response message
Browse files Browse the repository at this point in the history
  • Loading branch information
jellygnite committed Nov 26, 2020
1 parent 286dec3 commit 2b0f9c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Extensions/SiteConfigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextareaField;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;
use SilverStripe\AssetAdmin\Forms\UploadField;
use SilverStripe\Assets\File;
use SilverStripe\Assets\Image;
Expand All @@ -18,6 +19,7 @@ class SiteConfigExtension extends DataExtension

private static $db = [
"AdministratorEmail" => "Varchar(254)",
"ContactResponse" => "HTMLText",
"Phone" => "Varchar(50)",
"Fax" => "Varchar(50)",
"Email" => "Varchar(254)",
Expand Down Expand Up @@ -61,7 +63,10 @@ public function updateCMSFields(FieldList $fields) {

$fields->addFieldsToTab("Root.ContactDetails", array(
TextField::create("AdministratorEmail", "Email to receive Submissions")
->setRightTitle("All form submissions will be sent to this email address.")
->setRightTitle("All form submissions will be sent to this email address."),
HTMLEditorField::create("ContactResponse", "Contact Response")
->setRightTitle("Message to display after submitting contact form.")
->setRows(5)
));

$fields->addFieldsToTab("Root.ContactDetails", array(
Expand Down

0 comments on commit 2b0f9c8

Please sign in to comment.