Rev 115 | AutorÃa | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Form;
use Laminas\Form\Form;
class CompanySelfEvaluationFormForm extends Form
{
public function __construct()
{
parent::__construct();
$this->setInputFilter(new CompanySelfEvaluationFormFilter());
$this->add([
'name' => 'language',
'type' => \Laminas\Form\Element\Select::class,
'attributes' => [
'id' => 'language',
],
'options' => [
'value_options' => [
\LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_SPANISH => 'LABEL_SPANISH',
\LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_ENGLISH => 'LABEL_ENGLISH',
]
]
]);
$this->add([
'name' => 'name',
'type' => \Laminas\Form\Element\Text::class,
'attributes' => [
'maxlength' => 128,
'id' => 'name',
]
]);
$this->add([
'name' => 'description',
'type' => \Laminas\Form\Element\Textarea::class,
'attributes' => [
'id' => 'description',
]
]);
$this->add([
'name' => 'text',
'type' => \Laminas\Form\Element\Textarea::class,
'attributes' => [
'id' => 'text',
]
]);
$this->add([
'name' => 'content',
'type' => \Laminas\Form\Element\Textarea::class,
'attributes' => [
'id' => 'content',
]
]);
$this->add([
'name' => 'status',
'type' => \Laminas\Form\Element\Checkbox::class,
'attributes' => [
'id' => 'status',
],
'options' => [
'use_hidden_element' => 0,
'unchecked_value' => \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_INACTIVE,
'checked_value'=> \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_ACTIVE,
]
]);
}
}