Skip to content
Browse files

ENHANCEMENT SSF-53: add customised class to Member's GridField in Sec…

…urityAdmin
  • Loading branch information...
1 parent 7bdc3d1 commit 45927b98c42e583f3a2f70e25721a0209da9498f @normann normann committed
Showing with 3 additions and 1 deletion.
  1. +1 −0 admin/code/SecurityAdmin.php
  2. +2 −1 security/Group.php
View
1 admin/code/SecurityAdmin.php
@@ -106,6 +106,7 @@ function RootForm() {
$config->addComponent(new GridFieldPopupForms());
$config->addComponent(new GridFieldExporter());
$memberList = new GridField('Members', 'All members', DataList::create('Member'), $config);
+ $memberList->addExtraClass("members_grid");
$fields = new FieldList(
$root = new TabSet(
View
3 security/Group.php
@@ -71,7 +71,8 @@ public function getCMSFields() {
$config->getComponentByType('GridFieldRelationAdd')
->setResultsFormat('$Title ($Email)')->setSearchFields(array('FirstName', 'Surname', 'Email'));
$memberList = new GridField('Members','Members', $this->Members(), $config);
-
+ $memberList->addExtraClass('members_grid');
+
// @todo Implement permission checking on GridField
//$memberList->setPermissions(array('edit', 'delete', 'export', 'add', 'inlineadd'));
//$memberList->setPopupCaption(_t('SecurityAdmin.VIEWUSER', 'View User'));

0 comments on commit 45927b9

Please sign in to comment.
Something went wrong with that request. Please try again.