Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1de30d5bf298344985007bb8bf601a313800f318 1 parent a59637c
@normann normann authored
Showing with 4 additions and 6 deletions.
  1. +4 −6 security/Group.php
View
10 security/Group.php
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.