From 9526156d16854fc4612ed33dd982f9403a93f57b Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Sun, 22 Dec 2024 22:58:33 +0000 Subject: [PATCH] Add supervisor staff notes form and remove recommendations from case worker form --- src/Form/StaffNoteFormType.php | 1 - src/Form/SupervisorStaffNoteFormType.php | 43 ++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 src/Form/SupervisorStaffNoteFormType.php diff --git a/src/Form/StaffNoteFormType.php b/src/Form/StaffNoteFormType.php index ecc67dd..cd7fd6e 100644 --- a/src/Form/StaffNoteFormType.php +++ b/src/Form/StaffNoteFormType.php @@ -25,7 +25,6 @@ class StaffNoteFormType extends AbstractType 'multiple' => true, ]) ->add('note', TextareaType::class) - ->add('recommendations') ; } diff --git a/src/Form/SupervisorStaffNoteFormType.php b/src/Form/SupervisorStaffNoteFormType.php new file mode 100644 index 0000000..7a0c7cf --- /dev/null +++ b/src/Form/SupervisorStaffNoteFormType.php @@ -0,0 +1,43 @@ +add('date', null, [ + 'widget' => 'single_text', + 'disabled' => 'disabled' + ]) + ->add('servicesProvided', EnumType::class, [ + 'class' => ReferralServiceType::class, + 'expanded' => true, + 'multiple' => true, + 'disabled' => 'disabled' + ]) + ->add('note', TextareaType::class, [ + 'disabled' => 'disabled' + ]) + ->add('recommendations') + ; + } + + public function configureOptions(OptionsResolver $resolver): void + { + $resolver->setDefaults([ + 'data_class' => StaffNote::class, + ]); + } +}