mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
ENHANCEMENT SSF-53: add customised class to Member's GridField in SecurityAdmin
This commit is contained in:
parent
7bdc3d13fc
commit
45927b98c4
@ -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(
|
||||
|
@ -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'));
|
||||
|
Loading…
Reference in New Issue
Block a user