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; private $label;
/** /**
* @ORM\Column(type="string", length=9) * @ORM\Column(type="string", length=9, nullable=true)
*/ */
private $siren; private $siren;

View File

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

View File

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

View File

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