Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
17007 efrain 1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
7
 
8
$routeAdd       = $this->url('habits/skills/add');
9
$routeDatatable = $this->url('habits/skills');
10
$routeDashboard = $this->url('dashboard');
11
 
12
$allowAdd               = $acl->isAllowed($roleName, 'habits/skills/add') ? 1 : 0;
13
$allowEdit              = $acl->isAllowed($roleName, 'habits/skills/edit') ? 1 : 0;
14
$allowDelete            = $acl->isAllowed($roleName, 'habits/skills/delete') ? 1 : 0;
15
 
16
 
17
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
18
 
19
 
20
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
21
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
22
 
23
 
24
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
26
 
27
 
28
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
29
 
30
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
31
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
32
 
33
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
34
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
37
 
38
$this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
39
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
40
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
41
 
42
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-maxlength/bootstrap-maxlength.min.js'));
43
 
44
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2/css/select2.min.css'));
45
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2-bootstrap5-theme/select2-bootstrap-5-theme.css'));
46
$this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/select2.min.js'));
47
 
48
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-input-number/input-number-format.jquery.js'));
49
 
50
$this->inlineScript()->captureStart();
51
echo <<<JS
52
    jQuery( document ).ready(function( $ ) {
53
 
54
 
55
 
56
 
57
        var allowEdit   = $allowEdit;
58
        var allowDelete = $allowDelete;
59
 
60
        var gridTable = $('#gridTable').dataTable( {
61
            'processing': true,
62
            'serverSide': true,
63
            'searching': true,
64
            'order': [[ 0, 'asc' ]],
65
            'ordering':  true,
66
            'ordenable' : true,
67
            'responsive': true,
68
            'select' : false,
69
        	'paging': true,
70
            'pagingType': 'simple_numbers',
71
    		'ajax': {
72
    			'url' : '$routeDatatable',
73
    			'type' : 'get',
74
                'beforeSend': function (request) {
75
                  NProgress.start();
76
                },
77
                'dataFilter': function(response) {
78
                    var response = jQuery.parseJSON( response );
79
 
80
                    var json                = {};
81
                    json.recordsTotal       = 0;
82
                    json.recordsFiltered    = 0;
83
                    json.data               = [];
84
 
85
 
86
                    if(response.success) {
87
                        json.recordsTotal       = response.data.total;
88
                        json.recordsFiltered    = response.data.total;
89
                        json.data               = response.data.items;
90
                    } else {
91
                        $.fn.showError(response.data)
92
                    }
93
 
94
                    return JSON.stringify( json );
95
                }
96
    		},
97
            'language' : {
98
                'sProcessing':     'LABEL_DATATABLE_SPROCESSING',
99
                'sLengthMenu':     'LABEL_DATATABLE_SLENGTHMENU',
100
                'sZeroRecords':    'LABEL_DATATABLE_SZERORECORDS',
101
                'sEmptyTable':     'LABEL_DATATABLE_SEMPTYTABLE',
102
                'sInfo':           'LABEL_DATATABLE_SINFO',
103
                'sInfoEmpty':      'LABEL_DATATABLE_SINFOEMPTY',
104
                'sInfoFiltered':   'LABEL_DATATABLE_SINFOFILTERED',
105
                'sInfoPostFix':    '',
106
                'sSearch':         'LABEL_DATATABLE_SSEARCH',
107
                'sUrl':            '',
108
                'sInfoThousands':  ',',
109
                'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
110
                'oPaginate': {
111
                    'sFirst':    'LABEL_DATATABLE_SFIRST',
112
                    'sLast':     'LABEL_DATATABLE_SLAST',
113
                    'sNext':     'LABEL_DATATABLE_SNEXT',
114
                    'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
115
                },
116
                'oAria': {
117
                    'sSortAscending':  ': LABEL_DATATABLE_SSORTASCENDING',
118
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
119
                },
120
            },
121
            'drawCallback': function( settings ) {
122
                NProgress.done();
123
 
124
            },
125
            'aoColumns': [
126
                { 'mDataProp': 'name' },
127
                { 'mDataProp': 'intelligence' },
128
                { 'mDataProp': 'actions' },
129
    	    ],
130
            'columnDefs': [
131
                {
132
                    'targets': 0,
133
                    'className' : 'text-vertical-middle',
134
                },
135
                {
136
                    'targets': 1,
137
                    'className' : 'text-vertical-middle',
138
                },
139
                {
140
                    'targets': 2,
141
                    'orderable': false,
142
                    'render' : function ( data, type, row ) {
143
                        s = '';
144
 
145
                        if(allowEdit) {
146
                            s = s + '<button class="btn btn-primary btn-edit" data-href="' + data['link_edit']+ '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pen"></i> LABEL_EDIT </button>&nbsp;';
147
                        }
148
                        if(allowDelete) {
149
                            s = s + '<button class="btn btn-danger btn-delete" data-href="' + data['link_delete']+ '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-trash"></i> LABEL_DELETE </button>&nbsp;';
150
                        }
151
                        return s;
152
                    }
153
                }
154
              ],
155
        });
156
 
157
 
158
        var validator = $('#form').validate({
159
            debug: true,
160
            onclick: false,
161
            onkeyup: false,
162
            ignore: [],
163
            rules: {
164
                'name': {
165
                    required: true,
166
                    maxlength: 100,
167
                },
168
                'description': {
169
                   maxlength: 500,
170
                },
171
                'quantitative_value': {
172
                    required: true,
173
 
174
                },
175
                'qualitative_description': {
176
                    required: true,
177
 
178
                },
179
 
180
            },
181
            submitHandler: function(form)
182
            {
183
                $.ajax({
184
                    'dataType'  : 'json',
185
                    'accept'    : 'application/json',
186
                    'method'    : 'post',
187
                    'url'       :  $('#form').attr('action'),
188
                    'data'      :  $('#form').serialize()
189
                }).done(function(response) {
190
                    NProgress.start();
191
                    if(response['success']) {
192
                        $.fn.showSuccess(response['message' ]);
193
 
194
                        $('#modal').modal('hide');
195
 
196
 
197
                         gridTable.api().ajax.reload(null, false);
198
                    } else {
199
                        validator.resetForm();
200
                        if(jQuery.type(response['data']) == 'string') {
201
                            $.fn.showError(response['data']);
202
                        } else  {
203
                            $.each(response['data'], function( fieldname, errors ) {
204
                                $.fn.showFormErrorValidator('#form #' + fieldname, errors);
205
                            });
206
                        }
207
                    }
208
                }).fail(function( jqXHR, textStatus, errorThrown) {
209
                   $.fn.showError(textStatus);
210
                }).always(function() {
211
                    NProgress.done();
212
                });
213
                return false;
214
            },
215
            invalidHandler: function(form, validator) {
216
 
217
            }
218
        });
219
 
220
        $('body').on('click', 'button.btn-add', function(e) {
221
            e.preventDefault();
222
 
223
            $('.nav-tabs a[href="#general"]').tab('show')
224
 
225
            $('#form').attr('action', '$routeAdd');
226
            $('#form #name').val('');
227
            $('#form #description').val('');
228
            $('#form #quantitative_value').val('0');
229
            $('#form #qualitative_description').val('');
230
            $('#form #notification_10min_before').prop('checked', false);
231
            $('#form #notification_30min_before').prop('checked', false);
232
            $('#form #monday_active').prop('checked', false);
233
            $('#form #tuesday_active').prop('checked', false);
234
            $('#form #wednesday_active').prop('checked', false);
235
            $('#form #thursday_active').prop('checked', false);
236
            $('#form #friday_active').prop('checked', false);
237
            $('#form #saturday_active').prop('checked', false);
238
            $('#form #sunday_active').prop('checked', false);
239
            $('#form #monday_hour').prop('selectedIndex', 0);
240
            $('#form #monday_minute').prop('selectedIndex', 0);
241
            $('#form #tuesday_hour').prop('selectedIndex', 0);
242
            $('#form #tuesday_minute').prop('selectedIndex', 0);
243
            $('#form #wednesday_hour').prop('selectedIndex', 0);
244
            $('#form #wednesday_minute').prop('selectedIndex', 0);
245
            $('#form #thursday_hour').prop('selectedIndex', 0);
246
            $('#form #thursday_minute').prop('selectedIndex', 0);
247
            $('#form #friday_hour').prop('selectedIndex', 0);
248
            $('#form #friday_minute').prop('selectedIndex', 0);
249
            $('#form #saturday_hour').prop('selectedIndex', 0);
250
            $('#form #saturday_minute').prop('selectedIndex', 0);
251
            $('#form #sunday_hour').prop('selectedIndex', 0);
252
            $('#form #sunday_minute').prop('selectedIndex', 0);
253
            $('#form #intelligence').prop('selectedIndex', 0);
254
 
255
 
256
            validator.resetForm();
257
            $('#modal').modal('show');
258
        });
259
 
260
        $('body').on('click', 'button.btn-edit', function(e) {
261
            e.preventDefault();
262
            NProgress.start();
263
            var action = $(this).data('href');
264
 
265
            $.ajax({
266
                'dataType'  : 'json',
267
                'accept'    : 'application/json',
268
                'method'    : 'get',
269
                'url'       :  action,
270
            }).done(function(response) {
271
                if(response['success']) {
272
 
273
 
274
                    $('#form').attr('action', action);
275
                    $('#form #name').val(response['data']['name']);
276
                    $('#form #description').val(response['data']['description']);
277
                    $('#form #quantitative_value').val(response['data']['quantitative_value']);
278
                    $('#form #qualitative_description').val(response['data']['qualitative_description']);
279
                    $('#form #notification_10min_before').prop('checked', response['data']['notification_10min_before']);
280
                    $('#form #notification_30min_before').prop('checked', response['data']['notification_30min_before']);
281
                    $('#form #monday_active').prop('checked', response['data']['monday_active']);
282
                    $('#form #tuesday_active').prop('checked', response['data']['tuesday_active']);
283
                    $('#form #wednesday_active').prop('checked', response['data']['wednesday_active']);
284
                    $('#form #thursday_active').prop('checked', response['data']['thursday_active']);
285
                    $('#form #friday_active').prop('checked', response['data']['friday_active']);
286
                    $('#form #saturday_active').prop('checked', response['data']['saturday_active']);
287
                    $('#form #sunday_active').prop('checked', response['data']['sunday_active']);
288
                    $('#form #monday_hour').val(response['data']['monday_hour']);
289
                    $('#form #monday_minute').val(response['data']['monday_minute']);
290
                    $('#form #tuesday_hour').val(response['data']['tuesday_hour']);
291
                    $('#form #tuesday_minute').val(response['data']['tuesday_minute']);
292
                    $('#form #wednesday_hour').val(response['data']['wednesday_hour']);
293
                    $('#form #wednesday_minute').val(response['data']['wednesday_minute']);
294
                    $('#form #thursday_hour').val(response['data']['thursday_hour']);
295
                    $('#form #thursday_minute').val(response['data']['thursday_minute']);
296
                    $('#form #friday_hour').val(response['data']['friday_hour']);
297
                    $('#form #friday_minute').val(response['data']['friday_minute']);
298
                    $('#form #saturday_hour').val(response['data']['saturday_hour']);
299
                    $('#form #saturday_minute').val(response['data']['saturday_minute']);
300
                    $('#form #sunday_hour').val(response['data']['sunday_hour']);
301
                    $('#form #sunday_minute').val(response['data']['sunday_minute']);
302
                    $('#form #intelligence').val(response['data']['intelligence']);
303
 
304
 
305
                    validator.resetForm();
306
 
307
                    $('#modal').modal('show');
308
                } else {
309
                    $.fn.showError(response['data']);
310
                }
311
            }).fail(function( jqXHR, textStatus, errorThrown) {
312
                $.fn.showError(textStatus);
313
            }).always(function() {
314
                NProgress.done();
315
            });
316
        });
317
 
318
    $('body').on('click', 'button.btn-delete', function(e) {
319
        e.preventDefault();
320
        var action = $(this).data('href');
321
 
322
 
323
          swal.fire({
324
            title: 'LABEL_ARE_YOU_SURE',
325
            icon: 'question',
326
            cancelButtonText: 'LABEL_NO',
327
            showCancelButton: true,
328
            confirmButtonText: 'LABEL_YES'
329
          }).then((result) => {
330
            if (result.isConfirmed) {
331
 
332
                    NProgress.start();
333
                    $.ajax({
334
                        'dataType'  : 'json',
335
                        'accept'    : 'application/json',
336
                        'method'    : 'post',
337
                        'url'       :  action,
338
                    }).done(function(response) {
339
                        if(response['success']) {
340
                            $.fn.showSuccess(response['data']);
341
                            gridTable.api().ajax.reload(null, false);
342
                        } else {
343
                            $.fn.showError(response['data']);
344
                        }
345
                    }).fail(function( jqXHR, textStatus, errorThrown) {
346
                        $.fn.showError(textStatus);
347
                    }).always(function() {
348
                        NProgress.done();
349
                    });
350
                }
351
           });
352
 
353
        });
354
 
355
        $('body').on('click', 'button.btn-refresh', function(e) {
356
            e.preventDefault();
357
            gridTable.api().ajax.reload(null, false);
358
        });
359
 
360
 
361
        $('body').on('click', 'button.btn-cancel', function(e) {
362
            e.preventDefault();
363
            $('#modal').modal('hide');
364
        });
365
 
366
 
367
        $('#form #quantitative_value').inputNumberFormat({decimal: 2});
368
 
369
        $('#form #description').maxlength({
370
            alwaysShow: true,
371
            validate: true
372
        });
373
 
374
 
375
    });
376
JS;
377
$this->inlineScript()->captureEnd();
378
?>
379
 
380
 
381
 
382
<div class="container">
383
    	<div class="row">
384
        	<div class="col-12 mt-3">
385
				<div class="card">
386
 
387
					<div class="card-body">
388
					<h6 class="card-title">LABEL_SKILLS</h6>
389
						<div class="row">
390
							<div class="col-12  mt-3">
391
    							<table id="gridTable" class="table   table-bordered">
392
                              		<thead>
393
                						<tr>
394
                                        	<th>LABEL_NAME</th>
395
                                        	<th>LABEL_INTELLIGENCE</th>
396
                                          	<th>LABEL_ACTIONS</th>
397
                                        </tr>
398
                               		</thead>
399
                                 	<tbody>
400
                                 	</tbody>
401
                            	</table>
402
							</div>
403
						</div>
404
 
405
                   	</div>
406
                   	<div class="card-footer text-right">
407
 
408
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH  </button>
409
							<?php if($allowAdd) : ?>
410
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
411
							<?php endif; ?>
412
 
413
                 	</div>
414
          		</div>
415
           	</div>
416
        </div>
417
</div>
418
 
419
<!-- The Modal -->
420
<div class="modal" id="modal">
17008 efrain 421
	<div class="modal-dialog  modal-md">
17007 efrain 422
    	<div class="modal-content">
423
 
424
            <!-- Modal Header -->
425
      		<div class="modal-header">
426
        		<h6 class="modal-title">LABEL_SKILLS</h6>
427
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
428
      		</div>
429
 
430
      		<?php
431
            $form = $this->form;
432
            $form->setAttributes([
433
                'method'    => 'post',
434
                'name'      => 'form',
435
                'id'        => 'form'
436
            ]);
437
 
438
            $form->prepare();
439
            echo $this->form()->openTag($form);
440
            ?>
441
 
442
            <!-- Modal body -->
443
      		<div class="modal-body">
444
      			<ul class="nav nav-tabs" id="myTab" role="tablist">
445
  					<li class="nav-item">
446
    					<a class="nav-link active" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general" aria-selected="true">LABEL_GENERAL</a>
447
  					</li>
448
  					<li class="nav-item">
449
    					<a class="nav-link" id="calendar-tab" data-bs-toggle="tab" href="#calendar" role="tab" aria-controls="calendar" aria-selected="false">LABEL_CALENDAR</a>
450
  					</li>
451
  					<li class="nav-item">
452
    					<a class="nav-link" id="notification-tab" data-bs-toggle="tab" href="#notification" role="tab" aria-controls="notification" aria-selected="false">LABEL_NOTIFICATION</a>
453
  					</li>
454
  				</ul>
455
				<div class="tab-content border border-top-0 p-3" id="myTabContent">
456
  					<div class="tab-pane fade show active" id="general" role="tabpanel" aria-labelledby="general-tab">
457
 
458
 
459
  						<div class="row">
460
    						<div class="col  mt-3">
461
    						<?php
462
                            $element = $form->get('name');
463
                            $element->setOptions(['label' => 'LABEL_NAME']);
464
                            $element->setAttributes(['class' => 'form-control', 'maxlength' => 100]);
465
 
466
                            echo $this->formLabel($element);
467
                            echo $this->formText($element);
468
                            ?>
469
                            </div>
470
						</div>
471
    					<div class="row">
472
    						<div class="col  mt-3">
473
                        	<?php
474
                                $element = $form->get('description');
475
                                $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
476
                                $element->setAttributes(['class' => 'form-control', 'maxlength' => 500]);
477
 
478
                                echo $this->formLabel($element);
479
                                echo $this->formTextArea($element);
480
                            ?>
481
                   			</div>
482
						</div>
483
 
484
						<div class="row">
485
    						<div class="col  mt-3">
486
                        	<?php
487
                                $element = $form->get('quantitative_value');
488
                                $element->setOptions(['label' => 'LABEL_QUANTITATIVE_VALUE']);
489
                                $element->setAttributes(['class' => 'form-control', 'maxlength' => 5]);
490
 
491
                                echo $this->formLabel($element);
492
                                echo $this->formText($element);
493
                            ?>
494
                   			</div>
495
						</div>
496
 
497
						<div class="row">
498
    						<div class="col  mt-3">
499
                        	<?php
500
                                $element = $form->get('qualitative_description');
501
                                $element->setOptions(['label' => 'LABEL_QUALITATIVE_DESCRIPTION']);
502
                                $element->setAttributes(['class' => 'form-control', 'maxlength' => 50]);
503
 
504
                                echo $this->formLabel($element);
505
                                echo $this->formText($element);
506
                            ?>
507
                   			</div>
508
						</div>
509
 
510
 
511
  						<div class="row">
512
    						<div class="col  mt-3">
513
                        	<?php
514
                                $element = $form->get('intelligence');
515
                                $element->setOptions(['label' => 'LABEL_INTELLIGENCE']);
516
                                $element->setAttributes(['class' => 'form-control']);
517
 
518
                                echo $this->formLabel($element);
519
                                echo $this->formSelect($element);
520
                            ?>
521
                   			</div>
522
						</div>
523
 
524
 
525
 
526
  					</div>
527
 
528
  					<div class="tab-pane fade" id="calendar" role="tabpanel" aria-labelledby="calendar-tab">
529
  						<div class="row">
530
  							<div class="col-12 mt-3">
531
          						<table class="table table-bordered">
532
            						<thead>
533
            							<tr>
534
                							<th>LABEL_DAY</th>
535
                							<th>LABEL_ACTIVE</th>
536
                    						<th>LABEL_HOUR</th>
537
                    						<th>LABEL_MINUTE</th>
17008 efrain 538
              						</tr>
17007 efrain 539
            						</thead>
540
            						<tbody>
541
            							<?php
542
            							     $days = [
543
            							         'monday',
544
            							         'tuesday',
545
            							         'wednesday',
546
            							         'thursday',
547
            							         'friday',
548
            							         'saturday',
549
            							         'sunday',
550
            							     ];
17008 efrain 551
 
17007 efrain 552
            							     foreach($days as $day) :
553
 
554
            							     $label      = 'LABEL_' . strtoupper($day);
555
            							     $checkbox   = $day . '_active';
556
            							     $hour       = $day . '_hour';
557
            							     $minute     = $day . '_minute';
558
 
559
 
560
 
561
            							?>
17008 efrain 562
            								<tr>
17007 efrain 563
            								<td><?php echo $label ?></td>
564
            								<td>
565
            									<div class="form-check form-check-inline">
566
            										<?php
567
            										    $element = $form->get($checkbox);
568
                                                        $element->setAttributes(['class' => 'form-check-input']);
569
                                                        echo $this->formCheckbox($element);
570
                                                    ?>
571
                                				</div>
572
            								</td>
573
            								<td>
574
            									<?php
575
                                                    $element = $form->get($hour);
576
                                                    $element->setAttributes(['class' => 'form-control']);
577
                                                    echo $this->formSelect($element);
578
                                                ?>
579
            								</td>
580
            								<td>
581
            									<?php
582
                                                    $element = $form->get($minute);
583
                                                    $element->setAttributes(['class' => 'form-control']);
584
                                                    echo $this->formSelect($element);
585
                                                ?>
586
            								</td>
17008 efrain 587
            							</tr>
588
 
589
            							<?php endforeach; ?>
17007 efrain 590
 
591
            						</tbody>
592
            					</table>
593
 
594
 
595
 
596
  							</div>
597
 
598
 
599
  						</div>
600
 
601
 
602
  					</div>
603
 
604
 
605
 
606
  					<div class="tab-pane fade" id="notification" role="tabpanel" aria-labelledby="notification-tab">
607
  						<div class="row">
608
  							<div class="col-12 mt-3">
609
  								<div class="form-check form-check-inline mt-3">
610
                                    <?php
611
                                    $element = $form->get( 'notification_10min_before');
612
                                    $element->setOptions(['label' => 'LABEL_NOTIFICATION_10_MIN_BEFORE', 'class' => 'form-check-label']);
613
                                    $element->setAttributes(['class' => 'form-check-input']);
614
                                    echo $this->formCheckbox($element);
615
                                    echo $this->formLabel($element);
616
                                    ?>
617
                              	</div>
618
 
619
  								<br/>
620
  								<div class="form-check form-check-inline mt-3">
621
                                    <?php
622
                                    $element = $form->get('notification_30min_before');
623
                                    $element->setOptions(['label' => 'LABEL_NOTIFICATION_30_MIN_BEFORE', 'class' => 'form-check-label']);
624
                                    $element->setAttributes(['class' => 'form-check-input']);
625
                                    echo $this->formCheckbox($element);
626
                                    echo $this->formLabel($element);
627
                                    ?>
628
                              	</div>
629
 
630
  							</div>
631
  						</div>
632
  					</div>
633
 
634
				</div>
635
 
636
 
637
 
638
 
639
 
640
      		</div>
641
 
642
            <!-- Modal footer -->
643
      		<div class="modal-footer text-right">
644
        		 <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
645
       			<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
646
      		</div>
647
      		<?php echo $this->form()->closeTag($form); ?>
648
 
649
    	</div>
650
	</div>
651
</div>
652
 
653
 
654
 
655
 
656