WIP: Implement frontend

This commit is contained in:
Björn Fromme
2023-09-18 13:10:20 +02:00
parent bfc5e5e242
commit ce97017ac4
70 changed files with 8751 additions and 337 deletions
+15 -7
View File
@@ -32,15 +32,19 @@ class Teamer implements TimestampableEntityInterface
private string $uuid;
#[ORM\Column(length: 255)]
#[Assert\NotBlank(message: 'Bitte angeben')]
private ?string $firstName = null;
#[ORM\Column(length: 255)]
#[Assert\NotBlank(message: 'Bitte angeben')]
private ?string $lastName = null;
#[ORM\Column(length: 1)]
#[Assert\NotBlank(message: 'Bitte angeben')]
private ?string $gender = null;
#[ORM\Column(type: Types::DATE_IMMUTABLE)]
#[Assert\NotNull(message: 'Bitte angeben')]
private ?\DateTimeImmutable $dateOfBirth = null;
#[ORM\Column(length: 255, nullable: true)]
@@ -50,6 +54,7 @@ class Teamer implements TimestampableEntityInterface
private ?string $salutation = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotBlank(message: 'Bitte angeben')]
private ?string $nationality = null;
#[ORM\Embedded(class: Address::class)]
@@ -65,13 +70,15 @@ class Teamer implements TimestampableEntityInterface
private ?BankAccount $bankAccount = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotBlank(message: 'Bitte angeben')]
private ?string $taxId = null;
#[ORM\Column(length: 255, nullable: true)]
#[Assert\NotBlank(message: 'Bitte angeben')]
private ?string $healthInsuranceCompany = null;
#[ORM\Column(length: 32)]
private ?string $status = null;
private ?string $status;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $remarks = null;
@@ -121,7 +128,7 @@ class Teamer implements TimestampableEntityInterface
{
// Transform gender value
$gender = strtoupper($this->getGender());
$gender = 'F' ? 'W' : $gender;
$gender = 'F' === $gender ? 'W' : $gender;
// Ensure date of birth is populated
if (null === $dob = $this->getDateOfBirth()) {
@@ -130,6 +137,7 @@ class Teamer implements TimestampableEntityInterface
return [
'geburtsdatum' => $dob->format('d.m.Y'),
'anrede' => $this->getSalutation(),
'geschlecht' => $gender,
'titel' => $this->getAcademicTitle(),
'vorname' => $this->getFirstName(),
@@ -178,7 +186,7 @@ class Teamer implements TimestampableEntityInterface
return $this->firstName;
}
public function setFirstName(string $firstName): static
public function setFirstName(?string $firstName): static
{
$this->firstName = $firstName;
@@ -190,7 +198,7 @@ class Teamer implements TimestampableEntityInterface
return $this->lastName;
}
public function setLastName(string $lastName): static
public function setLastName(?string $lastName): static
{
$this->lastName = $lastName;
@@ -202,7 +210,7 @@ class Teamer implements TimestampableEntityInterface
return $this->gender;
}
public function setGender(string $gender): static
public function setGender(?string $gender): static
{
$this->gender = $gender;
@@ -214,7 +222,7 @@ class Teamer implements TimestampableEntityInterface
return $this->dateOfBirth;
}
public function setDateOfBirth(\DateTimeImmutable $dateOfBirth): static
public function setDateOfBirth(?\DateTimeImmutable $dateOfBirth): static
{
$this->dateOfBirth = $dateOfBirth;
@@ -250,7 +258,7 @@ class Teamer implements TimestampableEntityInterface
return $this->nationality;
}
public function setNationality(string $nationality): static
public function setNationality(?string $nationality): static
{
$this->nationality = $nationality;