mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Added placeholder text to group listboxes
This commit is contained in:
parent
a8478d2e46
commit
5b2cc19704
@ -58,13 +58,28 @@ class SiteConfig extends DataObject implements PermissionProvider {
|
|||||||
$tabAccess = new Tab('Access',
|
$tabAccess = new Tab('Access',
|
||||||
$viewersOptionsField = new OptionsetField("CanViewType", _t('SiteConfig.VIEWHEADER', "Who can view pages on this site?")),
|
$viewersOptionsField = new OptionsetField("CanViewType", _t('SiteConfig.VIEWHEADER', "Who can view pages on this site?")),
|
||||||
$viewerGroupsField = ListboxField::create("ViewerGroups", _t('SiteTree.VIEWERGROUPS', "Viewer Groups"))
|
$viewerGroupsField = ListboxField::create("ViewerGroups", _t('SiteTree.VIEWERGROUPS', "Viewer Groups"))
|
||||||
->setMultiple(true)->setSource($groupsMap),
|
->setMultiple(true)
|
||||||
|
->setSource($groupsMap)
|
||||||
|
->setAttribute(
|
||||||
|
'data-placeholder',
|
||||||
|
_t('SiteTree.GroupPlaceholder', 'Click to select group')
|
||||||
|
),
|
||||||
$editorsOptionsField = new OptionsetField("CanEditType", _t('SiteConfig.EDITHEADER', "Who can edit pages on this site?")),
|
$editorsOptionsField = new OptionsetField("CanEditType", _t('SiteConfig.EDITHEADER', "Who can edit pages on this site?")),
|
||||||
$editorGroupsField = ListboxField::create("EditorGroups", _t('SiteTree.EDITORGROUPS', "Editor Groups"))
|
$editorGroupsField = ListboxField::create("EditorGroups", _t('SiteTree.EDITORGROUPS', "Editor Groups"))
|
||||||
->setMultiple(true)->setSource($groupsMap),
|
->setMultiple(true)
|
||||||
|
->setSource($groupsMap)
|
||||||
|
->setAttribute(
|
||||||
|
'data-placeholder',
|
||||||
|
_t('SiteTree.GroupPlaceholder', 'Click to select group')
|
||||||
|
),
|
||||||
$topLevelCreatorsOptionsField = new OptionsetField("CanCreateTopLevelType", _t('SiteConfig.TOPLEVELCREATE', "Who can create pages in the root of the site?")),
|
$topLevelCreatorsOptionsField = new OptionsetField("CanCreateTopLevelType", _t('SiteConfig.TOPLEVELCREATE', "Who can create pages in the root of the site?")),
|
||||||
$topLevelCreatorsGroupsField = ListboxField::create("CreateTopLevelGroups", _t('SiteTree.TOPLEVELCREATORGROUPS', "Top level creators"))
|
$topLevelCreatorsGroupsField = ListboxField::create("CreateTopLevelGroups", _t('SiteTree.TOPLEVELCREATORGROUPS', "Top level creators"))
|
||||||
->setMultiple(true)->setSource($groupsMap)
|
->setMultiple(true)
|
||||||
|
->setSource($groupsMap)
|
||||||
|
->setAttribute(
|
||||||
|
'data-placeholder',
|
||||||
|
_t('SiteTree.GroupPlaceholder', 'Click to select group')
|
||||||
|
)
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
new HiddenField('ID')
|
new HiddenField('ID')
|
||||||
|
@ -1931,13 +1931,23 @@ 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),
|
->setMultiple(true)
|
||||||
|
->setSource($groupsMap)
|
||||||
|
->setAttribute(
|
||||||
|
'data-placeholder',
|
||||||
|
_t('SiteTree.GroupPlaceholder', 'Click to select group')
|
||||||
|
),
|
||||||
$editorsOptionsField = new OptionsetField(
|
$editorsOptionsField = new OptionsetField(
|
||||||
"CanEditType",
|
"CanEditType",
|
||||||
_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)
|
->setMultiple(true)
|
||||||
|
->setSource($groupsMap)
|
||||||
|
->setAttribute(
|
||||||
|
'data-placeholder',
|
||||||
|
_t('SiteTree.GroupPlaceholder', 'Click to select group')
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user