Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpdeclare(strict_types=1);namespace LeadersLinked\Form\SelfEvaluation;use Laminas\Form\Form;class SelfEvaluationFormForm extends Form{public function __construct(){parent::__construct();$this->setInputFilter(new SelfEvaluationFormFilter());$this->add(['name' => 'language','type' => \Laminas\Form\Element\Select::class,'attributes' => ['id' => 'language',],'options' => ['value_options' => [\LeadersLinked\Model\SelfEvaluationForm::LANGUAGE_SPANISH => 'LABEL_SPANISH',\LeadersLinked\Model\SelfEvaluationForm::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\SelfEvaluationForm::STATUS_INACTIVE,'checked_value'=> \LeadersLinked\Model\SelfEvaluationForm::STATUS_ACTIVE,]]);}}