Permalink
Browse files

ENHANCEMENT SSF-53 : remove literal field for explanation text of Par…

…ent dropdown, use a right title for it, instead
  • Loading branch information...
normann committed Mar 7, 2012
1 parent a59637c commit 1de30d5bf298344985007bb8bf601a313800f318
Showing with 4 additions and 6 deletions.
  1. +4 −6 security/Group.php
View
@@ -66,15 +66,11 @@ public function getCMSFields() {
new TabSet("Root",
new Tab('Members', _t('SecurityAdmin.MEMBERS', 'Members'),
new TextField("Title", $this->fieldLabel('Title')),
- Object::create('DropdownField',
+ $parentidfield = Object::create('DropdownField',
'ParentID',
$this->fieldLabel('Parent'),
DataList::create('Group')->exclude('ID', $this->ID)->map('ID', 'Breadcrumbs')
- )->setEmptyString(' '),
- new LiteralField(
- 'ParentIDDescription',
- '<p><em>' . _t('Group.GroupReminder', 'If you choose a parent group, this group will take all it\'s roles') . '</em></p>'
- )
+ )->setEmptyString(' ')
),
$permissionsTab = new Tab('Permissions', _t('SecurityAdmin.PERMISSIONS', 'Permissions'),
@@ -88,6 +84,8 @@ public function getCMSFields() {
)
)
);
+
+ $parentidfield->setRightTitle('<span class="aligned_right_label">' . _t('Group.GroupReminder', 'If you choose a parent group, this group will take all it\'s roles') . '</span>');
// Filter permissions
// TODO SecurityAdmin coupling, not easy to get to the form fields through GridFieldPopupForms

0 comments on commit 1de30d5

Please sign in to comment.