mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge branch '3.0' into 3.1
This commit is contained in:
commit
eed799dbd9
@ -81,6 +81,11 @@ class EditableFormField extends DataObject {
|
||||
"RightTitle" => "Varchar(255)", // from CustomSettings
|
||||
"ShowOnLoad" => "Boolean(1)", // from CustomSettings
|
||||
);
|
||||
|
||||
private static $defaults = array(
|
||||
'ShowOnLoad' => true,
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @config
|
||||
|
@ -56,7 +56,8 @@ class EditableFormHeading extends EditableFormField {
|
||||
}
|
||||
|
||||
public function getFormField() {
|
||||
$labelField = new HeaderField($this->Name, $this->EscapedTitle, $this->Level);
|
||||
$labelField = HeaderField::create($this->EscapedTitle)
|
||||
->setHeadingLevel($this->Level);
|
||||
$labelField->addExtraClass('FormHeading');
|
||||
$labelField->setAttribute('data-id', $this->Name);
|
||||
$this->doUpdateFormField($labelField);
|
||||
|
Loading…
Reference in New Issue
Block a user