Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
15461 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\RecruitmentSelection;
6
 
7
use Laminas\Form\Form;
8
use LeadersLinked\Model\RecruitmentSelectionInterview;
9
 
10
 
11
class RecruitmentSelectionTakeAnTestForm extends Form
12
{
13
 
14
 
15
    public function __construct()
16
    {
17
        parent::__construct();
18
        $this->setInputFilter(new RecruitmentSelectionTakeAnTestFilter());
19
 
20
        $this->add([
21
            'name' => 'comment',
22
            'type' => \Laminas\Form\Element\Textarea::class,
23
            'attributes' => [
24
                'id'    => 'comment',
25
                'maxlength' => 1024,
26
                'rows' => 5
27
            ]
28
        ]);
29
 
30
 
31
        $this->add([
32
            'name' => 'points',
33
            'type' => \Laminas\Form\Element\Number::class,
34
            'attributes' => [
35
                'id' => 'points',
36
                'min' => 0,
37
                'max' => 100,
38
                'step' => 1
39
            ],
40
        ]);
41
 
42
        $this->add([
43
            'name' => 'status',
44
            'type' => \Laminas\Form\Element\Select::class,
45
            'attributes' => [
46
                'id' => 'status',
47
            ],
48
            'options' => [
49
                'value_options' => [
50
                    RecruitmentSelectionInterview::STATUS_ACCEPTED => 'LABEL_ACCEPTED',
51
                    RecruitmentSelectionInterview::STATUS_REJECTED => 'LABEL_REJECTED',
52
                ]
53
            ]
54
        ]);
55
 
56
    }
57
}