Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
17002 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Skill;
6
 
7
use Laminas\Form\Form;
8
 
9
class SkillForm extends Form
10
{
11
 
12
    public function __construct()
13
    {
14
        parent::__construct();
15
        $this->setInputFilter(new SkillFilter());
16
 
17
 
18
        $this->add([
19
            'name' => 'name',
20
            'type' => \Laminas\Form\Element\Text::class,
21
             'attributes' => [
22
                'maxlength' 	=> 64,
23
                'id' 			=> 'name',
24
            ]
25
        ]);
26
 
27
        $this->add([
28
            'name' => 'description',
29
            'type' => \Laminas\Form\Element\Textarea::class,
30
            'attributes' => [
31
                'id'    => 'description',
32
            ]
33
        ]);
34
 
35
        $this->add([
36
            'name' => 'status',
37
            'type' => \Laminas\Form\Element\Checkbox::class,
38
            'attributes' => [
39
                'id' 			=> 'status',
40
            ],
41
            'options' => [
42
                'use_hidden_element' => false,
43
                'unchecked_value' => \LeadersLinked\Model\Skill::STATUS_INACTIVE,
44
                'checked_value'=> \LeadersLinked\Model\Skill::STATUS_ACTIVE,
45
            ]
46
        ]);
47
 
48
    }
49
}