mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Placeholder text for adding a group in Member->getCMSFields() (fixes #7217)
This commit is contained in:
parent
0e8c3acc35
commit
ffe698ca1e
@ -1135,7 +1135,12 @@ class Member extends DataObject implements TemplateGlobalProvider {
|
|||||||
asort($groupsMap);
|
asort($groupsMap);
|
||||||
$fields->addFieldToTab('Root.Main',
|
$fields->addFieldToTab('Root.Main',
|
||||||
ListboxField::create('DirectGroups', singleton('Group')->i18n_plural_name())
|
ListboxField::create('DirectGroups', singleton('Group')->i18n_plural_name())
|
||||||
->setMultiple(true)->setSource($groupsMap)
|
->setMultiple(true)
|
||||||
|
->setSource($groupsMap)
|
||||||
|
->setAttribute(
|
||||||
|
'data-placeholder',
|
||||||
|
_t('Member.ADDGROUP', 'Add group', 'Placeholder text for a dropdown')
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add permission field (readonly to avoid complicated group assignment logic).
|
// Add permission field (readonly to avoid complicated group assignment logic).
|
||||||
|
Loading…
Reference in New Issue
Block a user