From d4aba04a52a62bb828f742308841a817698d6bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 27 May 2022 16:41:38 +0200 Subject: [PATCH] do not show action when editing goals --- .../ChillPersonBundle/Form/SocialWork/GoalType.php | 12 ------------ .../Resources/views/SocialWork/Goal/index.html.twig | 6 ------ 2 files changed, 18 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Form/SocialWork/GoalType.php b/src/Bundle/ChillPersonBundle/Form/SocialWork/GoalType.php index 5fc77b410..812062137 100644 --- a/src/Bundle/ChillPersonBundle/Form/SocialWork/GoalType.php +++ b/src/Bundle/ChillPersonBundle/Form/SocialWork/GoalType.php @@ -43,17 +43,6 @@ class GoalType extends AbstractType ->add('title', TranslatableStringFormType::class, [ 'label' => 'Nom', ]) - - ->add('socialActions', EntityType::class, [ - 'class' => SocialAction::class, - 'required' => false, - 'multiple' => true, - 'choice_label' => function (SocialAction $issue) { - return $this->translatableStringHelper->localize($issue->getTitle()); - }, - 'attr' => ['class' => 'select2 '], - ]) - ->add('results', EntityType::class, [ 'class' => Result::class, 'required' => false, @@ -63,7 +52,6 @@ class GoalType extends AbstractType }, 'attr' => ['class' => 'select2 '], ]) - ->add('desactivationDate', ChillDateType::class, [ 'required' => false, 'label' => 'goal.desactivationDate', diff --git a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig index 20f944595..14e9bab73 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/SocialWork/Goal/index.html.twig @@ -5,7 +5,6 @@ {% block table_entities_thead_tr %} {{ 'Id'|trans }} {{ 'Title'|trans }} - {{ 'Social actions'|trans }} {{ 'goal.results'|trans }} {{ 'goal.desactivationDate'|trans }}   @@ -17,11 +16,6 @@ {{ entity.id }} {{ entity.title|localize_translatable_string }} - {% for sa in entity.socialActions %} - {{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %} - {% endfor %} - - {% for sa in entity.results %} {{ sa.title|localize_translatable_string }}{% if not loop.last %},{% else %}.{% endif %} {% endfor %}