diff --git a/hesabixCore/src/Controller/PersonsController.php b/hesabixCore/src/Controller/PersonsController.php index 35e1aee..5629a5d 100644 --- a/hesabixCore/src/Controller/PersonsController.php +++ b/hesabixCore/src/Controller/PersonsController.php @@ -83,6 +83,8 @@ class PersonsController extends AbstractController $person->setNikename($params['nikename']); if(array_key_exists('name',$params)) $person->setName($params['name']); + if(array_key_exists('birthday',$params)) + $person->setBirthday($params['birthday']); if(array_key_exists('tel',$params)) $person->setTel($params['tel']); if(array_key_exists('address',$params)) diff --git a/hesabixCore/src/Entity/Person.php b/hesabixCore/src/Entity/Person.php index d9d76ae..b36e524 100644 --- a/hesabixCore/src/Entity/Person.php +++ b/hesabixCore/src/Entity/Person.php @@ -107,6 +107,9 @@ class Person #[ORM\OneToMany(mappedBy: 'Person', targetEntity: StoreroomTicket::class)] private Collection $storeroomTickets; + #[ORM\Column(length: 255, nullable: true)] + private ?string $birthday = null; + public function __construct() { $this->hesabdariRows = new ArrayCollection(); @@ -527,4 +530,16 @@ class Person return $this; } + + public function getBirthday(): ?string + { + return $this->birthday; + } + + public function setBirthday(?string $birthday): static + { + $this->birthday = $birthday; + + return $this; + } } diff --git a/hesabixCore/templates/base.html.twig b/hesabixCore/templates/base.html.twig index 2ca0d7f..0a14214 100644 --- a/hesabixCore/templates/base.html.twig +++ b/hesabixCore/templates/base.html.twig @@ -27,6 +27,8 @@ + +
@@ -244,8 +246,8 @@
- نماد اعتماد الکترونیکی -
+ + مخزن کد‌های حسابیکس diff --git a/public_html/index.php b/public_html/index.php index 0f49629..1725c5b 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -1,10 +1,16 @@