mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
Add description to page type
This commit is contained in:
parent
ee8ca5caf1
commit
7cc7bb4ce6
@ -12,14 +12,19 @@
|
|||||||
class UserDefinedForm extends Page {
|
class UserDefinedForm extends Page {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var String Required Identifier
|
* @var string
|
||||||
*/
|
*/
|
||||||
static $required_identifier = null;
|
public static $description = 'Adds a customizable form.';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Array Fields on the user defined form page.
|
* @var string Required Identifier
|
||||||
*/
|
*/
|
||||||
static $db = array(
|
public static $required_identifier = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array Fields on the user defined form page.
|
||||||
|
*/
|
||||||
|
public static $db = array(
|
||||||
"SubmitButtonText" => "Varchar",
|
"SubmitButtonText" => "Varchar",
|
||||||
"OnCompleteMessage" => "HTMLText",
|
"OnCompleteMessage" => "HTMLText",
|
||||||
"ShowClearButton" => "Boolean",
|
"ShowClearButton" => "Boolean",
|
||||||
@ -27,22 +32,22 @@ class UserDefinedForm extends Page {
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Array Default values of variables when this page is created
|
* @var array Default values of variables when this page is created
|
||||||
*/
|
*/
|
||||||
static $defaults = array(
|
public static $defaults = array(
|
||||||
'Content' => '$UserDefinedForm',
|
'Content' => '$UserDefinedForm',
|
||||||
'DisableSaveSubmissions' => 0,
|
'DisableSaveSubmissions' => 0,
|
||||||
'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>'
|
'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>'
|
||||||
);
|
);
|
||||||
|
|
||||||
static $extensions = array(
|
public static $extensions = array(
|
||||||
"Versioned('Stage', 'Live')"
|
"Versioned('Stage', 'Live')"
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Array
|
* @var Array
|
||||||
*/
|
*/
|
||||||
static $has_many = array(
|
public static $has_many = array(
|
||||||
"Fields" => "EditableFormField",
|
"Fields" => "EditableFormField",
|
||||||
"Submissions" => "SubmittedForm",
|
"Submissions" => "SubmittedForm",
|
||||||
"EmailRecipients" => "UserDefinedForm_EmailRecipient"
|
"EmailRecipients" => "UserDefinedForm_EmailRecipient"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user