Proyectos de Subversion LeadersLinked - Services

Rev

Rev 304 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
304 www 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Form\Habit;
6
 
7
 
8
use Laminas\Form\Form;
9
use Laminas\Db\Adapter\AdapterInterface;
10
use Laminas\Log\LoggerInterface;
11
use LeadersLinked\Mapper\CompanySizeMapper;
12
use LeadersLinked\Mapper\IndustryMapper;
13
use LeadersLinked\Model\Feed;
14
 
15
class HabitSkillForm extends Form
16
{
17
    public function __construct()
18
    {
19
        parent::__construct();
310 www 20
        $this->setInputFilter(new HabitSkillFilter());
304 www 21
 
22
        $this->add([
23
            'name' => 'name',
24
            'type' => \Laminas\Form\Element\Text::class,
25
            'attributes' => [
26
                'id'    => 'name',
27
                'maxlength' => 100
28
            ]
29
        ]);
30
 
31
        $this->add([
32
            'name' => 'description',
33
            'type' => \Laminas\Form\Element\Textarea::class,
34
            'attributes' => [
35
                'id'    => 'description',
36
                'maxlength' => 512
37
            ]
38
        ]);
39
 
40
        $this->add([
41
            'name' => 'monday_active',
42
            'type' => \Laminas\Form\Element\Checkbox::class,
43
            'attributes' => [
44
                'id' => 'monday_active',
45
            ],
46
            'options' => [
47
                'use_hidden_element' => false,
48
                'unchecked_value' => '0',
49
                'checked_value' => '1',
50
            ]
51
        ]);
52
 
53
        $this->add([
54
            'name' => 'tuesday_active',
55
            'type' => \Laminas\Form\Element\Checkbox::class,
56
            'attributes' => [
57
                'id' => 'tuesday_active',
58
            ],
59
            'options' => [
60
                'use_hidden_element' => false,
61
                'unchecked_value' => '0',
62
                'checked_value' => '1',
63
            ]
64
        ]);
65
 
66
        $this->add([
67
            'name' => 'wednesday_active',
68
            'type' => \Laminas\Form\Element\Checkbox::class,
69
            'attributes' => [
70
                'id' => 'wednesday_active',
71
            ],
72
            'options' => [
73
                'use_hidden_element' => false,
74
                'unchecked_value' => '0',
75
                'checked_value' => '1',
76
            ]
77
        ]);
78
 
79
        $this->add([
80
            'name' => 'thursday_active',
81
            'type' => \Laminas\Form\Element\Checkbox::class,
82
            'attributes' => [
83
                'id' => 'thursday_active',
84
            ],
85
            'options' => [
86
                'use_hidden_element' => false,
87
                'unchecked_value' => '0',
88
                'checked_value' => '1',
89
            ]
90
        ]);
91
 
92
        $this->add([
93
            'name' => 'friday_active',
94
            'type' => \Laminas\Form\Element\Checkbox::class,
95
            'attributes' => [
96
                'id' => 'friday_active',
97
            ],
98
            'options' => [
99
                'use_hidden_element' => false,
100
                'unchecked_value' => '0',
101
                'checked_value' => '1',
102
            ]
103
        ]);
104
 
105
        $this->add([
106
            'name' => 'saturday_active',
107
            'type' => \Laminas\Form\Element\Checkbox::class,
108
            'attributes' => [
109
                'id' => 'saturday_active',
110
            ],
111
            'options' => [
112
                'use_hidden_element' => false,
113
                'unchecked_value' => '0',
114
                'checked_value' => '1',
115
            ]
116
        ]);
117
 
118
        $this->add([
119
            'name' => 'sunday_active',
120
            'type' => \Laminas\Form\Element\Checkbox::class,
121
            'attributes' => [
122
                'id' => 'saturday_active',
123
            ],
124
            'options' => [
125
                'use_hidden_element' => false,
126
                'unchecked_value' => '0',
127
                'checked_value' => '1',
128
            ]
129
        ]);
130
 
131
        $this->add([
132
            'name' => 'monday_time',
133
            'type' => \Laminas\Form\Element\Text::class,
134
            'attributes' => [
135
                'id'    => 'monday_time',
136
                'maxlength' => 5
137
            ]
138
        ]);
139
 
140
        $this->add([
141
            'name' => 'tuesday_time',
142
            'type' => \Laminas\Form\Element\Text::class,
143
            'attributes' => [
144
                'id'    => 'tuesday_time',
145
                'maxlength' => 5
146
            ]
147
        ]);
148
 
149
        $this->add([
150
            'name' => 'wednesday_time',
151
            'type' => \Laminas\Form\Element\Text::class,
152
            'attributes' => [
153
                'id'    => 'wednesday_time',
154
                'maxlength' => 5
155
            ]
156
        ]);
157
 
158
        $this->add([
159
            'name' => 'thursday_time',
160
            'type' => \Laminas\Form\Element\Text::class,
161
            'attributes' => [
162
                'id'    => 'thursday_time',
163
                'maxlength' => 5
164
            ]
165
        ]);
166
 
167
        $this->add([
168
            'name' => 'friday_time',
169
            'type' => \Laminas\Form\Element\Text::class,
170
            'attributes' => [
171
                'id'    => 'friday_time',
172
                'maxlength' => 5
173
            ]
174
        ]);
175
 
176
        $this->add([
177
            'name' => 'saturday_time',
178
            'type' => \Laminas\Form\Element\Text::class,
179
            'attributes' => [
180
                'id'    => 'saturday_time',
181
                'maxlength' => 5
182
            ]
183
        ]);
184
 
185
        $this->add([
186
            'name' => 'sunday_time',
187
            'type' => \Laminas\Form\Element\Text::class,
188
            'attributes' => [
189
                'id'    => 'sunday_time',
190
                'maxlength' => 5
191
            ]
192
        ]);
193
 
194
        $this->add([
195
            'name' => 'quantitative_value',
196
            'type' => \Laminas\Form\Element\Text::class,
197
            'attributes' => [
198
                'id'    => 'quantitative_value',
199
                'maxlength' => 5
200
            ]
201
        ]);
202
 
203
 
204
 
205
        $this->add([
206
            'name' => 'qualitative_description',
207
            'type' => \Laminas\Form\Element\Text::class,
208
            'attributes' => [
209
                'id'    => 'qualitative_description',
210
                'maxlength' => 50
211
            ]
212
        ]);
213
 
214
        $this->add([
215
            'name' => 'notification_10min_before',
216
            'type' => \Laminas\Form\Element\Checkbox::class,
217
            'attributes' => [
218
                'id' => 'notification_10min_before',
219
            ],
220
            'options' => [
221
                'use_hidden_element' => false,
222
                'unchecked_value' => '0',
223
                'checked_value' => '1',
224
            ]
225
        ]);
226
 
227
        $this->add([
228
            'name' => 'notification_30min_before',
229
            'type' => \Laminas\Form\Element\Checkbox::class,
230
            'attributes' => [
231
                'id' => 'notification_30min_before',
232
            ],
233
            'options' => [
234
                'use_hidden_element' => false,
235
                'unchecked_value' => '0',
236
                'checked_value' => '1',
237
            ]
238
        ]);
239
 
240
 
241
    }
242
}