admin: admin section for social work related entities: SocialIssue, SocialAction, Goal, Result, Evaluation

This commit is contained in:
nobohan
2022-05-05 12:07:45 +02:00
parent 10aa727fb3
commit 5daf09334b
27 changed files with 290 additions and 192 deletions

View File

@@ -190,7 +190,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'name' => 'social_issue',
'base_path' => '/admin/social-work/social-issue',
'form_class' => \Chill\PersonBundle\Form\SocialWork\SocialIssueType::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminSocialIssueController::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\SocialIssueController::class,
'actions' => [
'index' => [
'role' => 'ROLE_ADMIN',
@@ -211,7 +211,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'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,
'controller' => \Chill\PersonBundle\Controller\SocialWork\SocialActionController::class,
'actions' => [
'index' => [
'role' => 'ROLE_ADMIN',
@@ -232,7 +232,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'name' => 'social_goal',
'base_path' => '/admin/social-work/goal',
'form_class' => \Chill\PersonBundle\Form\SocialWork\GoalType::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminGoalController::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\GoalController::class,
'actions' => [
'index' => [
'role' => 'ROLE_ADMIN',
@@ -253,7 +253,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'name' => 'social_result',
'base_path' => '/admin/social-work/result',
'form_class' => \Chill\PersonBundle\Form\SocialWork\ResultType::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminResultController::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\ResultController::class,
'actions' => [
'index' => [
'role' => 'ROLE_ADMIN',
@@ -274,7 +274,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
'name' => 'social_evaluation',
'base_path' => '/admin/social-work/evaluation',
'form_class' => \Chill\PersonBundle\Form\SocialWork\EvaluationType::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\AdminEvaluationController::class,
'controller' => \Chill\PersonBundle\Controller\SocialWork\EvaluationController::class,
'actions' => [
'index' => [
'role' => 'ROLE_ADMIN',