AutorÃa | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Form\RecruitmentSelection;
use Laminas\Form\Form;
use LeadersLinked\Model\RecruitmentSelectionInterview;
class RecruitmentSelectionTakeAnTestForm extends Form
{
public function __construct()
{
parent::__construct();
$this->setInputFilter(new RecruitmentSelectionTakeAnTestFilter());
$this->add([
'name' => 'comment',
'type' => \Laminas\Form\Element\Textarea::class,
'attributes' => [
'id' => 'comment',
'maxlength' => 1024,
'rows' => 5
]
]);
$this->add([
'name' => 'points',
'type' => \Laminas\Form\Element\Number::class,
'attributes' => [
'id' => 'points',
'min' => 0,
'max' => 100,
'step' => 1
],
]);
$this->add([
'name' => 'status',
'type' => \Laminas\Form\Element\Select::class,
'attributes' => [
'id' => 'status',
],
'options' => [
'value_options' => [
RecruitmentSelectionInterview::STATUS_ACCEPTED => 'LABEL_ACCEPTED',
RecruitmentSelectionInterview::STATUS_REJECTED => 'LABEL_REJECTED',
]
]
]);
}
}