mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Other social entities became editable via admin
This commit is contained in:
@@ -348,7 +348,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
||||
[
|
||||
'class' => \Chill\PersonBundle\Entity\SocialWork\SocialIssue::class,
|
||||
'name' => 'social_issue',
|
||||
'base_path' => '/admin/social-issue',
|
||||
'base_path' => '/admin/social-work/social-issue',
|
||||
'form_class' => \Chill\PersonBundle\Form\SocialWork\SocialIssueType::class,
|
||||
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminSocialIssueController::class,
|
||||
'actions' => [
|
||||
@@ -358,14 +358,98 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
||||
],
|
||||
'new' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/SocialIssue/new.html.twig',
|
||||
'template' => '@ChillPerson/SocialWork/new.html.twig',
|
||||
],
|
||||
'edit' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/SocialIssue/edit.html.twig',
|
||||
'template' => '@ChillPerson/SocialWork/edit.html.twig',
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'class' => \Chill\PersonBundle\Entity\SocialWork\SocialAction::class,
|
||||
'name' => 'social_action',
|
||||
'base_path' => '/admin/social-work/social-action',
|
||||
'form_class' => \Chill\PersonBundle\Form\SocialWork\SocialActionType::class,
|
||||
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminSocialActionController::class,
|
||||
'actions' => [
|
||||
'index' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/SocialAction/index.html.twig',
|
||||
],
|
||||
'new' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/new.html.twig',
|
||||
],
|
||||
'edit' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/edit.html.twig',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'class' => \Chill\PersonBundle\Entity\SocialWork\Goal::class,
|
||||
'name' => 'social_goal',
|
||||
'base_path' => '/admin/social-work/goal',
|
||||
'form_class' => \Chill\PersonBundle\Form\SocialWork\GoalType::class,
|
||||
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminGoalController::class,
|
||||
'actions' => [
|
||||
'index' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/Goal/index.html.twig',
|
||||
],
|
||||
'new' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/new.html.twig',
|
||||
],
|
||||
'edit' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/edit.html.twig',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'class' => \Chill\PersonBundle\Entity\SocialWork\Result::class,
|
||||
'name' => 'social_result',
|
||||
'base_path' => '/admin/social-work/result',
|
||||
'form_class' => \Chill\PersonBundle\Form\SocialWork\ResultType::class,
|
||||
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminResultController::class,
|
||||
'actions' => [
|
||||
'index' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/Result/index.html.twig',
|
||||
],
|
||||
'new' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/new.html.twig',
|
||||
],
|
||||
'edit' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/edit.html.twig',
|
||||
]
|
||||
]
|
||||
],
|
||||
[
|
||||
'class' => \Chill\PersonBundle\Entity\SocialWork\Evaluation::class,
|
||||
'name' => 'social_evaluation',
|
||||
'base_path' => '/admin/social-work/evaluation',
|
||||
'form_class' => \Chill\PersonBundle\Form\SocialWork\EvaluationType::class,
|
||||
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminEvaluationController::class,
|
||||
'actions' => [
|
||||
'index' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/Evaluation/index.html.twig',
|
||||
],
|
||||
'new' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/new.html.twig',
|
||||
],
|
||||
'edit' => [
|
||||
'role' => 'ROLE_ADMIN',
|
||||
'template' => '@ChillPerson/SocialWork/edit.html.twig',
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
'apis' => [
|
||||
[
|
||||
|
Reference in New Issue
Block a user