Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form;
6
 
7
use Laminas\Form\Form;
8
use Laminas\Db\Adapter\AdapterInterface;
9
use Laminas\Log\LoggerInterface;
10
use LeadersLinked\Mapper\CompanySizeMapper;
11
use LeadersLinked\Mapper\IndustryMapper;
12
 
13
class EmailTemplateForm extends Form
14
{
15
 
16
 
17
    /**
18
     *
19
     * @param \Laminas\Db\Adapter\AdapterInterface $adapter
20
     */
21
    public function __construct()
22
    {
23
        parent::__construct();
24
        $this->setInputFilter(new EmailTemplateFilter());
25
 
26
        $this->add([
27
            'name' => 'id',
28
            'type' => \Laminas\Form\Element\Text::class,
29
            'attributes' => [
30
                'maxlength' 	=> 64,
31
                'id' 			=> 'id',
32
            ]
33
        ]);
34
 
35
        $this->add([
36
            'name' => 'subject',
37
            'type' => \Laminas\Form\Element\Text::class,
38
             'attributes' => [
39
                'maxlength' 	=> 128,
40
                'id' 			=> 'subject',
41
            ]
42
        ]);
43
 
44
        $this->add([
45
            'name' => 'content',
46
            'type' => \Laminas\Form\Element\Textarea::class,
47
            'attributes' => [
48
                'id'    => 'content',
49
            ]
50
        ]);
51
 
52
        $this->add([
53
            'name' => 'status',
54
            'type' => \Laminas\Form\Element\Checkbox::class,
55
            'attributes' => [
56
                'id' 			=> 'status',
57
            ],
58
            'options' => [
16766 efrain 59
                'use_hidden_element' => false,
1 www 60
                'unchecked_value' => \LeadersLinked\Model\EmailTemplate::STATUS_INACTIVE,
61
                'checked_value'=> \LeadersLinked\Model\EmailTemplate::STATUS_ACTIVE,
62
            ]
63
        ]);
64
    }
65
}