Rev 17002 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpdeclare(strict_types=1);namespace LeadersLinked\Form\Job;use Laminas\Form\Form;class JobLocationForm extends Form{public function __construct(){parent::__construct();$this->setInputFilter(new JobLocationFilter());$this->add(['name' => 'location_search','type' => \Laminas\Form\Element\Text::class,'attributes' => ['maxlength' => 250,'id' => 'location_search',]]);$this->add(['name' => 'formatted_address','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'formatted_address',]]);$this->add(['name' => 'address1','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'address1',]]);$this->add(['name' => 'address2','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'address2',]]);$this->add(['name' => 'country','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'country',]]);$this->add(['name' => 'state','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'state',]]);$this->add(['name' => 'city1','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'city1',]]);$this->add(['name' => 'city2','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'city2',]]);$this->add(['name' => 'postal_code','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'postal_code',]]);$this->add(['name' => 'latitude','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'latitude',]]);$this->add(['name' => 'longitude','type' => \Laminas\Form\Element\Hidden::class,'attributes' => ['id' => 'longitude',]]);$this->add(['name' => 'is_main','type' => \Laminas\Form\Element\Checkbox::class,'attributes' => ['id' => 'is_main',],'options' => ['use_hidden_element' => false,'unchecked_value' => \LeadersLinked\Model\CompanyLocation::IS_MAIN_NO,'checked_value'=> \LeadersLinked\Model\CompanyLocation::IS_MAIN_YES,]]);}}