Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
16766 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Planning;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Form\Element;
9
 
10
class PlanningObjectivesForm extends Form
11
{
12
 
13
    public function __construct(){
14
        parent::__construct();
15
        $this->setInputFilter(new PlanningObjectivesFilter());
16
 
17
        $this->add([
18
            'name' => 'title',
19
            'type' => \Laminas\Form\Element\Text::class,
20
            'attributes' => [
21
                'maxlength' 	=> 128,
22
                'id' 			=> 'title',
23
            ]
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' => 'date',
37
            'type' => Element\Date::class,
38
            'attributes' => [
39
                'maxlength' 	=> 15,
40
                'id' 			=> 'date',
41
            ]
42
        ]);
43
        $this->add([
44
            'name' => 'status',
45
            'type' => \Laminas\Form\Element\Checkbox::class,
46
            'attributes' => [
47
                'id' 			=> 'status',
48
            ],
49
            'options' => [
50
                'use_hidden_element' => false,
51
                'unchecked_value' => \LeadersLinked\Model\PlanningObjectives::STATUS_INACTIVE,
52
                'checked_value'=> \LeadersLinked\Model\PlanningObjectives::STATUS_ACTIVE,
53
            ]
54
        ]);
55
    }
56
 
57
}