diff --git a/src/Security/AdminModule/DefaultPresenter.php b/src/Security/AdminModule/DefaultPresenter.php index d06ad01b..0f649644 100755 --- a/src/Security/AdminModule/DefaultPresenter.php +++ b/src/Security/AdminModule/DefaultPresenter.php @@ -136,8 +136,15 @@ protected function createComponentTable() // Toolbar $toolbar = $admin->getNavbar(); - $toolbar->addSection('new', 'Create', 'file'); - $admin->connectFormWithNavbar($form, $toolbar->getSection('new'), $admin::MODE_PLACE); + $section = $toolbar->addSection('new', 'Create', 'user'); + + foreach ($this->securityManager->getUserTypes() as $type => $value) { + $admin->connectFormWithNavbar( + $form, + $section->addSection(str_replace('\\', '_', $type), $value->getName()), + $admin::MODE_PLACE + ); + } $table->addActionEvent('delete', 'Delete') ->getElementPrototype()->class[] = 'ajax';