Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 5696 | Rev 16840 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 5696 Rev 16822
Línea 1... Línea 1...
1
<?php
1
<?php 
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
Línea 4... Línea 4...
4
 
4
 
Línea 11... Línea 11...
11
$allowAdd               = $acl->isAllowed($roleName, 'settings/company-sizes/add') ? 1 : 0;
11
$allowAdd               = $acl->isAllowed($roleName, 'settings/company-sizes/add') ? 1 : 0;
12
$allowEdit              = $acl->isAllowed($roleName, 'settings/company-sizes/edit') ? 1 : 0;
12
$allowEdit              = $acl->isAllowed($roleName, 'settings/company-sizes/edit') ? 1 : 0;
13
$allowDelete            = $acl->isAllowed($roleName, 'settings/company-sizes/delete') ? 1 : 0;
13
$allowDelete            = $acl->isAllowed($roleName, 'settings/company-sizes/delete') ? 1 : 0;
Línea 14... Línea 14...
14
 
14
 
Línea 15... Línea 15...
15
 
15
 
16
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.min.js'));
16
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-input-number/input-number-format.jquery.min.js'));
Línea 17... Línea 17...
17
 
17
 
18
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
18
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
19
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
19
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
Línea 20... Línea 20...
20
 
20
 
21
 
21
 
Línea 22... Línea 22...
22
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
22
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
23
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
24
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
25
 
25
 
Línea 26... Línea 26...
26
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
26
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
27
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
27
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
Línea 28... Línea 28...
28
 
28
 
Línea 29... Línea 29...
29
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
29
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
30
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
31
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
31
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
Línea 32... Línea 32...
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
33
 
33
 
-
 
34
 
Línea 34... Línea -...
34
 
-
 
35
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
-
 
Línea 36... Línea -...
36
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
-
 
Línea -... Línea 35...
-
 
35
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2/css/select2.min.css'));
-
 
36
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
37
 
37
 
38
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.full.min.js'));
38
$this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/select2.full.min.js'));
39
 
39
 
40
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
40
$this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
41
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
41
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
42
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
42
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
43
 
43
 
44
 
44
 
45
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
45
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
46
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
46
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
47
 
47
 
48
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
48
 
49
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
49
 
50
 
50
 
Línea 69... Línea 69...
69
                $(element).removeClass('is-invalid');
69
                $(element).removeClass('is-invalid');
70
            },
70
            },
71
            errorElement: 'span',
71
            errorElement: 'span',
72
            errorClass: 'error invalid-feedback',
72
            errorClass: 'error invalid-feedback',
73
            errorPlacement: function(error, element) {
73
            errorPlacement: function(error, element) {
74
                if(element.parent('.form-group').length) {
-
 
75
                    error.insertAfter(element);
-
 
76
                } else if(element.parent('.toggle').length) {
-
 
77
                    error.insertAfter(element.parent().parent());
-
 
78
                } else {
-
 
79
                    error.insertAfter(element.parent());
74
                error.insertAfter(element.parent());
80
                }
-
 
-
 
75
                
81
            }
76
            }
82
        });
77
        });
Línea 83... Línea 78...
83
    
78
    
Línea 87... Línea 82...
87
            if(field) {
82
            if(field) {
88
                $(field).addClass('is-invalid');
83
                $(field).addClass('is-invalid');
Línea 89... Línea 84...
89
    
84
    
90
 
-
 
91
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
-
 
92
                if(field.parent('.form-group').length) {
-
 
93
                    error.insertAfter(field);
-
 
94
                } else  if(field.parent('.toggle').length) {
-
 
95
                    error.insertAfter(field.parent().parent());
85
 
96
                } else {
-
 
-
 
86
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
97
                    error.insertAfter(field.parent());
87
                error.insertAfter(field.parent());
98
                }
88
                
-
 
89
            }
99
            }
90
        };
-
 
91
 
-
 
92
 
100
        };
93
 
101
        
94
 
Línea 102... Línea 95...
102
        var allowEdit   = $allowEdit;
95
        var allowEdit   = $allowEdit;
103
        var allowDelete = $allowDelete;
96
        var allowDelete = $allowDelete;
104
        
97
        
105
        /* var gridTable = $('#gridTable').dataTable( {
98
        var gridTable = $('#gridTable').dataTable( {
106
            'processing': true,
99
            'processing': true,
107
            'serverSide': true,
100
            'serverSide': true,
Línea 163... Línea 156...
163
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
156
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
164
                },
157
                },
165
            },
158
            },
166
            'drawCallback': function( settings ) {
159
            'drawCallback': function( settings ) {
167
                NProgress.done();
160
                NProgress.done();
168
                
161
 
169
            },
162
            },
170
            'aoColumns': [
163
            'aoColumns': [
171
                { 'mDataProp': 'name' },
164
                { 'mDataProp': 'name' },
172
    	        { 'mDataProp': 'minimum_no_of_employee'},
165
    	        { 'mDataProp': 'minimum_no_of_employee'},
173
                { 'mDataProp': 'maximum_no_of_employee'},
166
                { 'mDataProp': 'maximum_no_of_employee'},
Línea 186... Línea 179...
186
                {
179
                {
187
                    'targets':2,
180
                    'targets':2,
188
                    'className' : 'text-right text-vertical-middle',
181
                    'className' : 'text-right text-vertical-middle',
189
                },
182
                },
190
                {
183
                {
-
 
184
                    'targets':3,
-
 
185
                    'className' : 'text-center text-vertical-middle',
-
 
186
                },
-
 
187
                {
191
                    'targets': -2,
188
                    'targets': -2,
192
                    'orderable': false,
189
                    'orderable': false,
193
                    'className' : 'text-center',
190
                    'className' : 'text-center',
194
                    'render' : function ( data, type, row ) {
191
                      'render' : function ( data, type, row ) {
Línea 195... Línea 192...
195
                      
192
                      
196
                        checked = data == 'a' ? ' checked="checked" ' : '';
193
                        checked = data == 'a' ? 'checked' : '';
197
                        return '<div class="checkbox checkbox-success">' +
194
                        return '<div class="mb-3">' +
198
                            '<input class="styled" type="checkbox" ' + checked + ' disabled="disabled">' +
195
                            '<input class="form-check-input" type="checkbox" ' + checked + ' disabled="disabled">' +
199
                            '<label ></label></div>';
196
                            '<label ></label></div>';
200
                    }
197
                    }
201
                },
198
                },
202
                {
199
                {
Línea 212... Línea 209...
212
                            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;';
209
                            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;';
213
                        }
210
                        }
214
                        return s;
211
                        return s;
215
                    }
212
                    }
216
                }
213
                }
217
            ],
214
              ],
218
        }); */
215
        });
219
        
216
 
220
        
217
 
221
        /* var validator = $('#form').validate({
218
        var validator = $('#form').validate({
222
            debug: true,
219
            debug: true,
223
            onclick: false,
220
            onclick: false,
224
            onkeyup: false,
221
            onkeyup: false,
225
            ignore: [],
222
            ignore: [],
226
            rules: {
223
            rules: {
Línea 263... Línea 260...
263
                                $.fn.showFormErrorValidator('#form #' + fieldname, errors);
260
                                $.fn.showFormErrorValidator('#form #' + fieldname, errors);
264
                            });
261
                            });
265
                        }
262
                        }
266
                    }
263
                    }
267
                }).fail(function( jqXHR, textStatus, errorThrown) {
264
                }).fail(function( jqXHR, textStatus, errorThrown) {
268
                    $.fn.showError(textStatus);
265
                   $.fn.showError(textStatus);
269
                }).always(function() {
266
                }).always(function() {
270
                    NProgress.done();
267
                    NProgress.done();
271
                });
268
                });
272
                return false;
269
                return false;
273
            },
270
            },
274
            invalidHandler: function(form, validator) {
271
            invalidHandler: function(form, validator) {
Línea 275... Línea 272...
275
            
272
            
276
            }
273
            }
-
 
274
        });
-
 
275
        
-
 
276
        $('body').on('click', 'button.btn-add', function(e) {
Línea 277... Línea 277...
277
        }); */
277
            e.preventDefault();
278
 
278
 
279
        /* $('button.btn-delete').confirmation({
-
 
280
                    rootSelector: 'button.btn-delete',
279
            $('span[id="form-title"]').html('LABEL_ADD');
281
                    title : 'LABEL_ARE_YOU_SURE',
-
 
282
                    singleton : true,
280
            $('#form').attr('action', '$routeAdd');
283
                    btnOkLabel: 'LABEL_YES',
281
            $('#form #name').val('');
284
                    btnCancelLabel: 'LABEL_NO',
282
            $('#form #minimum_no_of_employee').val('');
-
 
283
            $('#form #maximum_no_of_employee').val('');
-
 
284
            $('#form #status').bootstrapToggle('on');
285
                    onConfirm: function(value) {
285
 
286
                        action = $(this).data('href');
-
 
287
                        NProgress.start();
-
 
288
                        $.ajax({
-
 
289
                            'dataType'  : 'json',
-
 
290
                            'accept'    : 'application/json',
-
 
291
                            'method'    : 'post',
-
 
292
                            'url'       :  action,
-
 
293
                        }).done(function(response) {
-
 
294
                            if(response['success']) {
-
 
295
                                $.fn.showSuccess(response['data']);
-
 
296
                                gridTable.api().ajax.reload(null, false);
-
 
297
                            } else {
-
 
298
                                $.fn.showError(response['data']);
-
 
299
                            }
-
 
300
                        }).fail(function( jqXHR, textStatus, errorThrown) {
286
 
301
                            $.fn.showError(textStatus);
-
 
302
                        }).always(function() {
-
 
303
                            NProgress.done();
-
 
304
                        });
-
 
305
                    },
287
            validator.resetForm();
Línea -... Línea 288...
-
 
288
            $('#modal').modal('show');
-
 
289
        });
-
 
290
        
-
 
291
        $('body').on('click', 'button.btn-edit', function(e) {
-
 
292
            e.preventDefault();
-
 
293
            NProgress.start();
-
 
294
            var action = $(this).data('href');
-
 
295
 
-
 
296
            $.ajax({
-
 
297
                'dataType'  : 'json',
-
 
298
                'accept'    : 'application/json',
-
 
299
                'method'    : 'get',
-
 
300
                'url'       :  action,
-
 
301
            }).done(function(response) {
-
 
302
                if(response['success']) {
-
 
303
 
-
 
304
                    $('span[id="form-title"]').html('LABEL_EDIT');
-
 
305
                    $('#form').attr('action', action);
-
 
306
                    $('#form #name').val(response['data']['name']);
-
 
307
                    $('#form #minimum_no_of_employee').val(response['data']['minimum_no_of_employee']);
-
 
308
                    $('#form #maximum_no_of_employee').val(response['data']['maximum_no_of_employee']);
-
 
309
                    $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
-
 
310
                    validator.resetForm();
-
 
311
                    
-
 
312
                    $('#modal').modal('show');
-
 
313
                } else {
-
 
314
                    $.fn.showError(response['data']);
-
 
315
                }
-
 
316
            }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
317
                $.fn.showError(textStatus);
-
 
318
            }).always(function() {
-
 
319
                NProgress.done();
-
 
320
            });
-
 
321
        });
-
 
322
 
-
 
323
 
-
 
324
        $('body').on('click', 'button.btn-delete', function(e) {
-
 
325
            e.preventDefault();
-
 
326
            var action = $(this).data('href');
-
 
327
 
-
 
328
            Swal.fire({
-
 
329
                title: 'LABEL_ARE_YOU_SURE',
-
 
330
                icon: 'question',
-
 
331
                iconHtml: '',
-
 
332
                confirmButtonText:  'LABEL_YES',
-
 
333
                cancelButtonText: 'LABEL_NO',
-
 
334
                showCancelButton: true,
-
 
335
                showCloseButton: true
-
 
336
            }).then((result) => {
-
 
337
                /* Read more about isConfirmed, isDenied below */
-
 
338
                if (result.isConfirmed) {
-
 
339
                    NProgress.start();
-
 
340
                    
-
 
341
                    $.ajax({
-
 
342
                        'dataType'  : 'json',
-
 
343
                        'method'    : 'post',
-
 
344
                        'url'       :  action,
-
 
345
                    }).done(function(response) {
-
 
346
                        if(response['success']) {
-
 
347
                            $.fn.showSuccess(response['data']);
-
 
348
                            gridTable.api().ajax.reload(null, false);
-
 
349
                   
-
 
350
                        } else {
-
 
351
                            $.fn.showError(response['data']);
-
 
352
                        }
-
 
353
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
354
                        $.fn.showError(textStatus);
-
 
355
                    }).always(function() {
-
 
356
                        NProgress.done();
-
 
357
                    });
-
 
358
                }
-
 
359
                
-
 
360
            });
-
 
361
        }); 
-
 
362
 
-
 
363
        $('body').on('click', 'button.btn-refresh', function(e) {
-
 
364
            e.preventDefault();
-
 
365
            gridTable.api().ajax.reload(null, false);
-
 
366
        });
-
 
367
        
306
                });
368
 
-
 
369
        $('body').on('click', 'button.btn-cancel', function(e) {
-
 
370
            e.preventDefault();
307
         */
371
            $('#modal').modal('hide');
Línea -... Línea 372...
-
 
372
        });
-
 
373
 
308
        
374
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
309
        $('#toggle-btn').bootstrapToggle();
375
 
310
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
376
        $('#form #minimum_no_of_employee').inputNumberFormat({decimal : 0});
-
 
377
        $('#form #maximum_no_of_employee').inputNumberFormat({decimal : 0});
-
 
378
    });
Línea -... Línea 379...
-
 
379
JS;
-
 
380
$this->inlineScript()->captureEnd();
-
 
381
?>
-
 
382
  
-
 
383
 
-
 
384
    	<div class="row">
-
 
385
        	<div class="col-12">
-
 
386
				<div class="card">                    
-
 
387
					<div class="card-body">
-
 
388
						<h6 class="card-title">LABEL_COMPANY_SIZES</h6>
-
 
389
						<div class="row">
-
 
390
							<div class="col-12 mb-3 mt-3">
-
 
391
                	    		<table id="gridTable" class="table table-striped table-hover">
-
 
392
                              		<thead>
-
 
393
                						<tr>
-
 
394
                                        	<th>LABEL_NAME</th>
-
 
395
                                          	<th>LABEL_MINIMUM</th>
-
 
396
                                          	<th>LABEL_MAXIMUM</th>
-
 
397
                                          	<th>LABEL_ACTIVE</th>
-
 
398
                                          	<th>LABEL_ACTIONS</th>
-
 
399
                                        </tr>
-
 
400
                               		</thead>
-
 
401
                                 	<tbody>
-
 
402
                                 	</tbody>
-
 
403
                            	</table>
-
 
404
                            </div>
-
 
405
                        </div>    	
-
 
406
                   	</div>
-
 
407
                   	<div class="card-footer text-right">
-
 
408
                   		<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></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>
311
 
411
						<?php endif; ?>
-
 
412
						</div>
-
 
413
                 	</div>
312
    });
414
          		</div>
-
 
415
           	</div>     
-
 
416
        </div>          
-
 
417
 
-
 
418
 
-
 
419
<!-- The Modal -->
-
 
420
<div class="modal" id="modal">
-
 
421
	<div class="modal-dialog  modal-xl">
-
 
422
    	<div class="modal-content">
-
 
423
 
-
 
424
            <!-- Modal Header -->
-
 
425
      		<div class="modal-header">
-
 
426
        		<h4 class="modal-title">LABEL_COMPANY_SIZES - <span id="form-title"></span></h4>
-
 
427
        		<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
-
 
428
      		</div>
-
 
429
 
-
 
430
            <!-- Modal body -->
-
 
431
             <?php 
-
 
432
                    $form = $this->form;
-
 
433
            		$form->setAttributes([
313
JS;
434
                        'method'    => 'post',
-
 
435
                        'name'      => 'form',
-
 
436
                        'id'        => 'form'
-
 
437
                    ]);
-
 
438
    
-
 
439
                    $form->prepare();
-
 
440
                    echo $this->form()->openTag($form);
-
 
441
                    ?>	
-
 
442
      		<div class="modal-body">
-
 
443
       							
-
 
444
    					<div class="row">
-
 
445
    						<div class="col-12 mb-3 mt-3">
-
 
446
        					<?php 
-
 
447
                            $element = $form->get('name');
-
 
448
                            $element->setOptions(['label' => 'LABEL_NAME']);
-
 
449
                            $element->setAttributes(['class' => 'form-control']); 
-
 
450
                                            
-
 
451
                            echo $this->formLabel($element);
-
 
452
                            echo $this->formText($element);
-
 
453
                            ?>
-
 
454
							</div>
-
 
455
						</div>
-
 
456
    					<div class="row">
-
 
457
    						<div class="col-12 mb-3 mt-3">
-
 
458
                    	<?php 
-
 
459
                            $element = $form->get('minimum_no_of_employee');
-
 
460
                            $element->setOptions(['label' => 'LABEL_MINIMUM']);
-
 
461
                            $element->setAttributes(['class' => 'form-control']); 
-
 
462
 
-
 
463
                            echo $this->formLabel($element);
-
 
464
                            echo $this->formText($element);
-
 
465
                        ?>
-
 
466
							</div>
-
 
467
						</div>
-
 
468
    					<div class="row">
-
 
469
    						<div class="col-12 mb-3 mt-3">
-
 
470
                    	<?php 
-
 
471
                            $element = $form->get('maximum_no_of_employee');
314
$this->inlineScript()->captureEnd();
472
                            $element->setOptions(['label' => 'LABEL_MAXIMUM']);
-
 
473
                            $element->setAttributes(['class' => 'form-control']); 
-
 
474
                                        
-
 
475
                            echo $this->formLabel($element);
315
 
476
                            echo $this->formText($element);
-
 
477
                        ?>
-
 
478
						</div>
-
 
479
    					<div class="row">
-
 
480
    						<div class="col-12 mb-3 mt-3">
-
 
481
                      	<?php 
-
 
482
                            $element = $form->get('status');
-
 
483
                            echo $this->formCheckbox($element);
-
 
484
                        ?>
316
$js = <<<JS
485
							</div>
-
 
486
						</div>
-
 
487
								
-
 
488
        				<div class="form-group">
317
const urlsVar = {
489
                    		
-
 
490
                   		</div>
-
 
491
     	      		
-
 
492
      		</div>
-
 
493
 
-
 
494
            <!-- Modal footer -->
-
 
495
      		<div class="modal-footer text-right">
318
        linkTable: '$routeDatatable',
496
        		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
497
              	<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
498
      		</div>
-
 
499
      		<?php echo $this->form()->closeTag($form); ?>
319
        addUrl: '$routeAdd',
500
 
Línea 320... Línea -...
320
        allowAdd: '$allowAdd',
-
 
321
        allowEdit: '$allowEdit',
-
 
322
        allowDelete: '$allowDelete',
-
 
Línea 323... Línea -...
323
   }
-
 
324
JS;
-
 
325
 
-
 
326
 
501
    	</div>
-
 
502
	</div>