mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-09-30 05:09:07 +02:00
Merge pull request #1271 from tractorcow/pulls/4.0/dropdown-cleanup
API Use new formfields
This commit is contained in:
commit
e77cfb5143
@ -2082,7 +2082,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
_t('SiteTree.ACCESSHEADER', "Who can view this page?")
|
_t('SiteTree.ACCESSHEADER', "Who can view this page?")
|
||||||
),
|
),
|
||||||
$viewerGroupsField = ListboxField::create("ViewerGroups", _t('SiteTree.VIEWERGROUPS', "Viewer Groups"))
|
$viewerGroupsField = ListboxField::create("ViewerGroups", _t('SiteTree.VIEWERGROUPS', "Viewer Groups"))
|
||||||
->setMultiple(true)
|
|
||||||
->setSource($groupsMap)
|
->setSource($groupsMap)
|
||||||
->setAttribute(
|
->setAttribute(
|
||||||
'data-placeholder',
|
'data-placeholder',
|
||||||
@ -2093,7 +2092,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
_t('SiteTree.EDITHEADER', "Who can edit this page?")
|
_t('SiteTree.EDITHEADER', "Who can edit this page?")
|
||||||
),
|
),
|
||||||
$editorGroupsField = ListboxField::create("EditorGroups", _t('SiteTree.EDITORGROUPS', "Editor Groups"))
|
$editorGroupsField = ListboxField::create("EditorGroups", _t('SiteTree.EDITORGROUPS', "Editor Groups"))
|
||||||
->setMultiple(true)
|
|
||||||
->setSource($groupsMap)
|
->setSource($groupsMap)
|
||||||
->setAttribute(
|
->setAttribute(
|
||||||
'data-placeholder',
|
'data-placeholder',
|
||||||
|
Loading…
Reference in New Issue
Block a user