person: add altnames in the person creation modal

This commit is contained in:
nobohan
2021-11-26 18:04:46 +01:00
parent d71d1beb42
commit 780b7db8cb
3 changed files with 38 additions and 3 deletions

View File

@@ -91,7 +91,10 @@ class PersonApiController extends ApiController
{
//TODO get alt_name config from chill person
$configAltNames = ["key" => "jeune_fille", "labels" => ["fr" => "Nom de naisssance" ]]; //TODO fake data
$configAltNames = [
["key" => "jeune_fille", "labels" => ["fr" => "Nom de naissance" ]],
["key" => "surnom", "labels" => ["fr" => "Surnom" ]]
]; //TODO fake data
return $this->json($configAltNames, Response::HTTP_OK, [], ['groups' => ['read']]);
}