MINOR Placeholder text for adding a group in Member->getCMSFields() (fixes #7217)

This commit is contained in:
Ingo Schommer 2012-04-30 10:29:09 +02:00
parent 0e8c3acc35
commit ffe698ca1e

View File

@ -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).