admin: add personresourcekind in the admin

This commit is contained in:
nobohan
2022-05-05 15:20:47 +02:00
parent 2fbdd169df
commit 9ce7f10415
8 changed files with 164 additions and 0 deletions

View File

@@ -206,6 +206,27 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
],
],
],
[
'class' => \Chill\PersonBundle\Entity\Person\PersonResourceKind::class,
'name' => 'person_resource-kind',
'base_path' => '/admin/person/resource-kind',
'form_class' => \Chill\PersonBundle\Form\PersonResourceKindType::class,
'controller' => \Chill\PersonBundle\Controller\PersonResourceKindController::class,
'actions' => [
'index' => [
'role' => 'ROLE_ADMIN',
'template' => '@ChillPerson/PersonResourceKind/index.html.twig',
],
'new' => [
'role' => 'ROLE_ADMIN',
'template' => '@ChillPerson/PersonResourceKind/new.html.twig',
],
'edit' => [
'role' => 'ROLE_ADMIN',
'template' => '@ChillPerson/PersonResourceKind/edit.html.twig',
],
],
],
[
'class' => \Chill\PersonBundle\Entity\SocialWork\SocialIssue::class,
'name' => 'social_issue',