UserGroupForm: Notify the user that memberships will be cleared...

...when removing a group.

refs #8826
This commit is contained in:
Johannes Meyer 2015-06-01 14:25:29 +02:00
parent 89311f96df
commit 4bd36bc500
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ class UserGroupForm extends RepositoryForm
protected function createDeleteElements(array $formData)
{
$this->setTitle(sprintf($this->translate('Remove group %s?'), $this->getIdentifier()));
$this->addDescription($this->translate(
'Note that all users that are currently a member of this group will'
. ' have their membership cleared automatically.'
));
$this->setSubmitLabel($this->translate('Yes'));
}