Add supervisor staff notes form and remove recommendations from case worker form
This commit is contained in:
parent
91110c037e
commit
9526156d16
@ -25,7 +25,6 @@ class StaffNoteFormType extends AbstractType
|
|||||||
'multiple' => true,
|
'multiple' => true,
|
||||||
])
|
])
|
||||||
->add('note', TextareaType::class)
|
->add('note', TextareaType::class)
|
||||||
->add('recommendations')
|
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
43
src/Form/SupervisorStaffNoteFormType.php
Normal file
43
src/Form/SupervisorStaffNoteFormType.php
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Form;
|
||||||
|
|
||||||
|
use App\Entity\MemberCase;
|
||||||
|
use App\Entity\StaffNote;
|
||||||
|
use App\Enums\ReferralServiceType;
|
||||||
|
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
|
||||||
|
use Symfony\Component\Form\AbstractType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\EnumType;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||||
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
|
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||||
|
|
||||||
|
class SupervisorStaffNoteFormType extends AbstractType
|
||||||
|
{
|
||||||
|
public function buildForm(FormBuilderInterface $builder, array $options): void
|
||||||
|
{
|
||||||
|
$builder
|
||||||
|
->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,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user