Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16320 Rev 16822
Línea 11... Línea 11...
11
 
11
 
12
$allowAdd = $acl->isAllowed($roleName, 'performance-evaluation/evaluations/add') ? 1 : 0;
12
$allowAdd = $acl->isAllowed($roleName, 'performance-evaluation/evaluations/add') ? 1 : 0;
13
$allowDelete = $acl->isAllowed($roleName, 'performance-evaluation/evaluations/delete') ? 1 : 0;
13
$allowDelete = $acl->isAllowed($roleName, 'performance-evaluation/evaluations/delete') ? 1 : 0;
Línea 14... Línea 14...
14
$allowReport =  $acl->isAllowed($roleName, 'performance-evaluation/evaluations/report') ? 1 : 0;
14
$allowReport =  $acl->isAllowed($roleName, 'performance-evaluation/evaluations/report') ? 1 : 0;
15
 
15
 
Línea 16... Línea -...
16
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
-
 
Línea 17... Línea -...
17
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
-
 
18
 
-
 
19
 
-
 
Línea -... Línea 16...
-
 
16
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
20
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
17
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
21
 
18
 
Línea 22... Línea -...
22
 
-
 
23
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
19
 
24
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
-
 
25
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
20
 
Línea -... Línea 21...
-
 
21
 
-
 
22
 
-
 
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
-
 
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
Línea 26... Línea -...
26
 
-
 
27
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
-
 
28
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
-
 
Línea 29... Línea 25...
29
 
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
30
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
26
 
31
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
27
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
Línea -... Línea 28...
-
 
28
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
29
 
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
Línea -... Línea 31...
-
 
31
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
-
 
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
Línea 34... Línea -...
34
 
-
 
Línea -... Línea 33...
-
 
33
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
-
 
34
 
35
 
35
 
36
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
37
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
37
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
Línea 38... Línea 38...
38
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
38
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
39
 
39
 
-
 
40
$this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
-
 
41
//$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
-
 
42
//$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
-
 
43
 
Línea 40... Línea -...
40
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
-
 
41
//$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
-
 
Línea 42... Línea -...
42
//$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
-
 
43
 
-
 
Línea 44... Línea 44...
44
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datepicker/js/bootstrap-datepicker.js'));
44
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datepicker/js/bootstrap-datepicker.js'));
45
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datepicker/js/bootstrap-datepicker.es.js'));
45
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-datepicker/js/bootstrap-datepicker.es.js'));
Línea 233... Línea 233...
233
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
233
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
234
                },
234
                },
235
            },
235
            },
236
            'drawCallback': function( settings ) {
236
            'drawCallback': function( settings ) {
237
                NProgress.done();
237
                NProgress.done();
238
                $('button.btn-delete').confirmation({
-
 
239
                    rootSelector: 'button.btn-delete',
-
 
240
                    title : 'LABEL_ARE_YOU_SURE',
-
 
241
                    singleton : true,
-
 
242
                    btnOkLabel: 'LABEL_YES',
-
 
243
                    btnCancelLabel: 'LABEL_NO',
-
 
244
                    onConfirm: function(value) {
-
 
245
                        action = $(this).data('href');
-
 
246
                        NProgress.start();
-
 
247
                        $.ajax({
-
 
248
                            'dataType'  : 'json',
-
 
249
                            'accept'    : 'application/json',
-
 
-
 
238
                
250
                            'method'    : 'post',
-
 
251
                            'url'       :  action,
-
 
252
                        }).done(function(response) {
-
 
253
                            if(response['success']) {
-
 
254
                                $.fn.showSuccess(response['data']);
-
 
255
                                gridTable.api().ajax.reload(null, false);
-
 
256
                            } else {
-
 
257
                                $.fn.showError(response['data']);
-
 
258
                            }
-
 
259
                        }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
260
                            $.fn.showError(textStatus);
-
 
261
                        }).always(function() {
-
 
262
                            NProgress.done();
-
 
263
                        });
-
 
264
                    },
-
 
265
                });
-
 
Línea 266... Línea 239...
266
 
239
 
267
 
240
 
268
            },
241
            },
Línea 418... Línea 391...
418
        $('#row-form').show();
391
        $('#row-form').show();
Línea 419... Línea 392...
419
                    
392
                    
420
        return false;
393
        return false;
Línea -... Línea 394...
-
 
394
    });
-
 
395
 
-
 
396
 $('body').on('click', 'button.btn-delete', function(e) { 
-
 
397
        e.preventDefault();
-
 
398
        var action = $(this).data('href');
-
 
399
 
-
 
400
 
-
 
401
          swal.fire({
-
 
402
            title: 'LABEL_ARE_YOU_SURE',
-
 
403
            icon: 'question',
-
 
404
            cancelButtonText: 'LABEL_NO',
-
 
405
            showCancelButton: true,
-
 
406
            confirmButtonText: 'LABEL_YES'
-
 
407
          }).then((result) => {
-
 
408
            if (result.isConfirmed) {
-
 
409
 
-
 
410
                    NProgress.start();
-
 
411
                    $.ajax({
-
 
412
                        'dataType'  : 'json',
-
 
413
                        'accept'    : 'application/json',
-
 
414
                        'method'    : 'post',
-
 
415
                        'url'       :  action,
-
 
416
                    }).done(function(response) {
-
 
417
                        if(response['success']) {
-
 
418
                            $.fn.showSuccess(response['data']);
-
 
419
                            gridTable.api().ajax.reload(null, false);
-
 
420
                        } else {
-
 
421
                            $.fn.showError(response['data']);
-
 
422
                        }
-
 
423
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
424
                        $.fn.showError(textStatus);
-
 
425
                    }).always(function() {
-
 
426
                        NProgress.done();
-
 
427
                    });
-
 
428
            }
-
 
429
       });
Línea 421... Línea 430...
421
    });
430
    });
422
 
431
 
423
 
432
 
424
    $('#form #last_date').datepicker({  
433
    $('#form #last_date').datepicker({