mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 09:06:02 +00:00
ENHANCEMENT Added LegacyTableFieldTestPage
This commit is contained in:
parent
b67f99adbe
commit
a360865b47
23
code/LegacyTableFieldsTestPage.php
Normal file
23
code/LegacyTableFieldsTestPage.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
class LegacyTableFieldsTestPage extends TestPage {
|
||||
|
||||
function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
|
||||
$tf = new TableListField('CompaniesTF', 'Company');
|
||||
$tf->setShowPagination(true);
|
||||
$ctf = new ComplexTableField($this, 'CompaniesCTF', 'Company');
|
||||
|
||||
$fields->addFieldsToTab('Root.Fields', array(
|
||||
$tf,
|
||||
$ctf
|
||||
));
|
||||
|
||||
return $fields;
|
||||
}
|
||||
}
|
||||
|
||||
class LegacyTableFieldsTestPage_Controller extends TestPage_Controller {
|
||||
|
||||
}
|
@ -28,11 +28,6 @@ class RelationFieldsTestPage extends TestPage {
|
||||
Object::create('TreeMultiselectField', 'ManyManyPages', 'ManyManyPages (with search)', 'SiteTree')->setShowSearch(true)
|
||||
));
|
||||
|
||||
// TODO Fix CTF in 3.0
|
||||
// $fields->addFieldToTab("Root.CTF",
|
||||
// new ComplexTableField($this, "HasManyCompanies", "TestCTFItem")
|
||||
// );
|
||||
|
||||
// $fields->addFieldToTab("Root.Tests.ComplexTableField",
|
||||
// new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map()));
|
||||
// $fields->addFieldToTab("Root.Tests.CheckboxSet", new CheckboxSetField("CheckboxSet", "CheckboxSetField", TestCategory::map()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user