siret et siren non obligatoire (fixes #17)

This commit is contained in:
afornerot 2019-08-22 10:06:49 +02:00
parent 8a170f3abb
commit 31c0763f1b
4 changed files with 4 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class Niveau01
private $label;
/**
* @ORM\Column(type="string", length=9)
* @ORM\Column(type="string", length=9, nullable=true)
*/
private $siren;

View File

@ -29,7 +29,7 @@ class Niveau02
private $label;
/**
* @ORM\Column(type="string", length=14)
* @ORM\Column(type="string", length=14, nullable=true)
*/
private $siret;

View File

@ -42,6 +42,7 @@ class Niveau01Type extends AbstractType
TextType::class, array(
"label" => $options["labelsiren"],
"disabled" => ($options["mode"]=="delete"?true:false),
"required" => false,
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px")
)
);

View File

@ -54,6 +54,7 @@ class Niveau02Type extends AbstractType
TextType::class, array(
"label" =>"SIRET",
"disabled" => ($options["mode"]=="delete"?true:false),
"required" => false,
"attr" => array("class" => "form-control", "style" => "margin-bottom:15px")
)
);