Add medical infos

This commit is contained in:
Xbird
2022-06-15 17:53:51 +00:00
parent 8d958cd7bf
commit ca1af41839
7 changed files with 112 additions and 1 deletions

View File

@@ -467,6 +467,16 @@ class Directory
*/
private $hasNoPapers = false;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $medicalContact;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $medicaltrusted;
public function __construct()
{
@@ -1472,4 +1482,28 @@ class Directory
return $this;
}
public function getMedicalContact(): ?string
{
return $this->medicalContact;
}
public function setMedicalContact(?string $medicalContact): self
{
$this->medicalContact = $medicalContact;
return $this;
}
public function getMedicaltrusted(): ?string
{
return $this->medicaltrusted;
}
public function setMedicaltrusted(?string $medicaltrusted): self
{
$this->medicaltrusted = $medicaltrusted;
return $this;
}
}

View File

@@ -73,6 +73,24 @@ class DirectoryType extends AbstractType
if ($user->getAdminMode() || in_array('general_medical_view', $userPermissions)) {
$builder
->add('dead', null, ['label' => 'form_label_dead', 'help' => 'form_help_wanted'])
->add(
'medicalContact',
ContentType::class,
['label' => 'form_label_medical_contact',
'help' => 'form_help_medical_contact',
'required' => false,
'attr' => ['style' => 'height: 400px;']
]
)
->add(
'medicalTrusted',
ContentType::class,
['label' => 'form_label_medical_trusted',
'help' => 'form_help_medical_trusted',
'required' => false,
'attr' => ['style' => 'height: 400px;']
]
)
->add(
'medicalFamilyHistory',
ContentType::class,