mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #9566 from purplespider/patch-3
Fixes getCMSFields TabSet example
This commit is contained in:
commit
82f096496e
@ -44,12 +44,14 @@ To fully customise your form fields, start with an empty FieldList.
|
||||
public function getCMSFields()
|
||||
{
|
||||
$fields = FieldList::create(
|
||||
TabSet::create("Root.Main",
|
||||
TabSet::create("Root",
|
||||
Tab::create("Main",
|
||||
CheckboxSetField::create('IsActive','Is active?'),
|
||||
TextField::create('Title'),
|
||||
TextareaField::create('Content')
|
||||
->setRows(5)
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
return $fields;
|
||||
|
Loading…
x
Reference in New Issue
Block a user