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

This commit is contained in:
Normann Lou 2012-03-02 16:28:47 +13:00
parent 7bdc3d13fc
commit 45927b98c4
2 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,7 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
$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 File

@ -71,7 +71,8 @@ class Group extends DataObject {
$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'));