Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16320 Rev 16822
Línea 14... Línea 14...
14
$allowReport = $acl->isAllowed($roleName, 'performance-evaluation/forms/report') ? 1 : 0;
14
$allowReport = $acl->isAllowed($roleName, 'performance-evaluation/forms/report') ? 1 : 0;
15
$allowActive = $acl->isAllowed($roleName, 'performance-evaluation/forms/active') ? 1 : 0;
15
$allowActive = $acl->isAllowed($roleName, 'performance-evaluation/forms/active') ? 1 : 0;
16
$allowInactive = $acl->isAllowed($roleName, 'performance-evaluation/forms/inactive') ? 1 : 0;
16
$allowInactive = $acl->isAllowed($roleName, 'performance-evaluation/forms/inactive') ? 1 : 0;
Línea 17... Línea 17...
17
 
17
 
Línea 18... Línea 18...
18
 
18
 
19
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
19
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
Línea 20... Línea 20...
20
 
20
 
21
 
21
 
22
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
22
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 23... Línea 23...
23
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
24
 
24
 
Línea 25... Línea 25...
25
 
25
 
26
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
26
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
27
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
28
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
28
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
Línea 29... Línea 29...
29
 
29
 
30
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
30
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
Línea 31... Línea 31...
31
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
31
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
Línea 32... Línea 32...
32
 
32
 
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
33
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
34
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
Línea 35... Línea 35...
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
36
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
Línea 37... Línea -...
37
 
-
 
38
 
-
 
39
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
-
 
Línea 40... Línea 37...
40
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
37
 
-
 
38
 
-
 
39
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2/css/select2.min.css'));
-
 
40
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
41
 
41
 
Línea 42... Línea 42...
42
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.full.min.js'));
42
$this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/select2.full.min.js'));
43
 
43
 
Línea 218... Línea 218...
218
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
218
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
219
            },
219
            },
220
        },
220
        },
221
        'drawCallback': function(settings) {
221
        'drawCallback': function(settings) {
222
            NProgress.done();
222
            NProgress.done();
223
            $('button.btn-delete').confirmation({
-
 
224
                rootSelector: 'button.btn-delete',
-
 
225
                title: 'LABEL_ARE_YOU_SURE',
-
 
226
                singleton: true,
-
 
227
                btnOkLabel: 'LABEL_YES',
-
 
228
                btnCancelLabel: 'LABEL_NO',
-
 
229
                onConfirm: function(value) {
-
 
230
                    action = $(this).data('href');
-
 
231
                    NProgress.start();
-
 
232
                    $.ajax({
-
 
233
                        'dataType': 'json',
-
 
234
                        'accept': 'application/json',
-
 
235
                        'method': 'post',
-
 
236
                        'url': action,
-
 
237
                    }).done(function(response) {
-
 
238
                        if (response['success']) {
-
 
239
                            $.fn.showSuccess(response['data']);
-
 
240
                             gridTable.api().ajax.reload(null, false);
-
 
241
                        } else {
-
 
242
                            $.fn.showError(response['data']);
-
 
243
                        }
-
 
244
                    }).fail(function(jqXHR, textStatus, errorThrown) {
-
 
245
                        $.fn.showError(textStatus);
-
 
246
                    }).always(function() {
-
 
247
                        NProgress.done();
-
 
248
                    });
-
 
249
                },
-
 
250
            });
223
            
251
        },
224
        },
252
        'aoColumns': [{
225
        'aoColumns': [{
253
                'mDataProp': 'name'
226
                'mDataProp': 'name'
254
            },
227
            },
255
            {
228
            {
Línea 286... Línea 259...
286
            {
259
            {
287
                'targets': -2,
260
                'targets': -2,
288
                'orderable': false,
261
                'orderable': false,
289
                'className': 'text-center',
262
                'className': 'text-center',
290
                'render': function(data, type, row) {
263
                'render': function(data, type, row) {
291
                    checked = data == 'a' ? ' checked="checked" ' : '';
264
                    checked = data == 'a'  ? 'checked' : '';
292
                    return '<div class="checkbox checkbox-success">' +
265
                    return '<div class="form-check">' +
293
                        '<input class="styled" type="checkbox" ' + checked + ' disabled="disabled">' +
266
                        '<input type="checkbox" class="form-check-input" disabled="" checked="' + checked + '">' +
294
                        '<label ></label></div>';
267
                        '<label class="form-check-label" for="checkCheckedDisabled"></label></div>' ;
295
                }
268
                }
296
            },
269
            },
297
            {
270
            {
298
                'targets': -1,
271
                'targets': -1,
299
                'orderable': false,
272
                'orderable': false,
Línea 484... Línea 457...
484
    $('#form #description').maxlength({
457
    $('#form #description').maxlength({
485
        alwaysShow: true,
458
        alwaysShow: true,
486
        validate: true
459
        validate: true
487
    });
460
    });
Línea -... Línea 461...
-
 
461
 
-
 
462
 $('body').on('click', 'button.btn-delete', function(e) { 
-
 
463
        e.preventDefault();
-
 
464
        var action = $(this).data('href');
Línea -... Línea 465...
-
 
465
 
-
 
466
 
-
 
467
          swal.fire({
-
 
468
            title: 'LABEL_ARE_YOU_SURE',
-
 
469
            icon: 'question',
-
 
470
            cancelButtonText: 'LABEL_NO',
-
 
471
            showCancelButton: true,
-
 
472
            confirmButtonText: 'LABEL_YES'
Línea -... Línea 473...
-
 
473
          }).then((result) => {
-
 
474
            if (result.isConfirmed) {
-
 
475
 
-
 
476
                    NProgress.start();
-
 
477
                    $.ajax({
-
 
478
                        'dataType'  : 'json',
-
 
479
                        'accept'    : 'application/json',
-
 
480
                        'method'    : 'post',
-
 
481
                        'url'       :  action,
-
 
482
                    }).done(function(response) {
-
 
483
                        if(response['success']) {
-
 
484
                            $.fn.showSuccess(response['data']);
-
 
485
                            gridTable.api().ajax.reload(null, false);
-
 
486
                        } else {
-
 
487
                            $.fn.showError(response['data']);
-
 
488
                        }
-
 
489
                    }).fail(function( jqXHR, textStatus, errorThrown) {
-
 
490
                        $.fn.showError(textStatus);
-
 
491
                    }).always(function() {
-
 
492
                        NProgress.done();
-
 
493
                    });
Línea 488... Línea 494...
488
 
494
            }
489
 
495
       });