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, + ]); + } +}