Add medical infos
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user