mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Editing and relation adding on SecurityAdmin groups (both root and group instances) (SSF-53)
This commit is contained in:
parent
a2afe4e4ad
commit
4bd5333b56
@ -107,6 +107,8 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
|
||||
*/
|
||||
function RootForm() {
|
||||
$config = new GridFieldConfig_Base(25);
|
||||
$config->addComponent(new GridFieldAction_Edit());
|
||||
$config->addComponent(new GridFieldAction_Delete());
|
||||
$config->addComponent(new GridFieldPopupForms());
|
||||
$config->addComponent(new GridFieldExporter());
|
||||
$memberList = new GridField('Members', 'All members', DataList::create('Member'), $config);
|
||||
|
@ -62,8 +62,10 @@ class Group extends DataObject {
|
||||
public function getCMSFields() {
|
||||
Requirements::javascript(SAPPHIRE_DIR . '/javascript/PermissionCheckboxSetField.js');
|
||||
|
||||
$config = new GridFieldConfig_ManyManyEditor('FirstName', true, 20);
|
||||
$config->addComponent(new GridFieldExporter());
|
||||
$config = new GridFieldConfig_ManyManyEditor('FirstName', 20);
|
||||
$config->addComponents(new GridFieldExporter());
|
||||
$config->getComponentByType('GridFieldRelationAdd')
|
||||
->setResultsFormat('$Title ($Email)')->setSearchFields(array('FirstName', 'Surname', 'Email'));
|
||||
$memberList = new GridField('Members','Members', $this->Members(), $config);
|
||||
|
||||
// @todo Implement permission checking on GridField
|
||||
|
Loading…
Reference in New Issue
Block a user