Línea 11... |
Línea 11... |
11 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
|
11 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
|
12 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/edit') ? 1 : 0;
|
12 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/edit') ? 1 : 0;
|
13 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/delete') ? 1 : 0;
|
13 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/delete') ? 1 : 0;
|
14 |
$allowReport = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/report') ? 1 : 0;
|
14 |
$allowReport = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/report') ? 1 : 0;
|
15 |
$allowFile = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file') ? 1 : 0;
|
15 |
$allowFile = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file') ? 1 : 0;
|
16 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
16 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
|
17 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
17 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
|
Línea 18... |
Línea -... |
18 |
|
- |
|
Línea 19... |
Línea -... |
19 |
|
- |
|
20 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
|
- |
|
21 |
|
- |
|
22 |
|
- |
|
Línea -... |
Línea 18... |
- |
|
18 |
|
- |
|
19 |
|
23 |
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
|
20 |
|
24 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
21 |
|
Línea 25... |
Línea -... |
25 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
- |
|
26 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
22 |
|
27 |
|
- |
|
28 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
23 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
|
Línea 29... |
Línea 24... |
29 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
24 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
30 |
|
25 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
- |
|
26 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
31 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
27 |
|
Línea 32... |
Línea 28... |
32 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
|
28 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
|
33 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
|
29 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
|
- |
|
30 |
|
Línea 34... |
Línea 31... |
34 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
|
31 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
|
35 |
|
32 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
|
Línea 36... |
Línea -... |
36 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
- |
|
37 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
- |
|
38 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
- |
|
Línea 39... |
Línea -... |
39 |
|
- |
|
40 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
- |
|
41 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
- |
|
Línea -... |
Línea 33... |
- |
|
33 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
|
- |
|
34 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
|
- |
|
35 |
|
- |
|
36 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
- |
|
37 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
- |
|
38 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
- |
|
39 |
|
- |
|
40 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
- |
|
41 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
42 |
|
42 |
|
Línea 43... |
Línea 43... |
43 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
|
43 |
|
44 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
|
44 |
|
Línea 45... |
Línea 45... |
45 |
|
45 |
|
46 |
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
|
46 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
|
Línea 47... |
Línea 47... |
47 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
|
47 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
|
Línea 180... |
Línea 180... |
180 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
180 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
181 |
},
|
181 |
},
|
182 |
},
|
182 |
},
|
183 |
'drawCallback': function(settings) {
|
183 |
'drawCallback': function(settings) {
|
184 |
NProgress.done();
|
184 |
NProgress.done();
|
185 |
$('button.btn-delete').confirmation({
|
- |
|
186 |
rootSelector: 'button.btn-delete',
|
- |
|
187 |
title: 'LABEL_ARE_YOU_SURE',
|
- |
|
188 |
singleton: true,
|
- |
|
189 |
btnOkLabel: 'LABEL_YES',
|
- |
|
190 |
btnCancelLabel: 'LABEL_NO',
|
- |
|
191 |
onConfirm: function(value) {
|
- |
|
192 |
action = $(this).data('href');
|
- |
|
193 |
NProgress.start();
|
- |
|
194 |
$.ajax({
|
- |
|
195 |
'dataType': 'json',
|
- |
|
196 |
'accept': 'application/json',
|
- |
|
197 |
'method': 'post',
|
- |
|
198 |
'url': action,
|
- |
|
199 |
}).done(function(response) {
|
- |
|
200 |
if (response['success']) {
|
- |
|
201 |
$.fn.showSuccess(response['data']);
|
- |
|
202 |
gridTable.api().ajax.reload(null, false);
|
- |
|
203 |
} else {
|
- |
|
204 |
$.fn.showError(response['data']);
|
- |
|
205 |
}
|
- |
|
206 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
- |
|
207 |
$.fn.showError(textStatus);
|
- |
|
208 |
}).always(function() {
|
- |
|
209 |
NProgress.done();
|
- |
|
210 |
});
|
- |
|
211 |
},
|
- |
|
212 |
});
|
185 |
|
213 |
},
|
186 |
},
|
214 |
'aoColumns': [
|
187 |
'aoColumns': [
|
215 |
{
|
188 |
{
|
216 |
'mDataProp': function(data, type, row) {
|
189 |
'mDataProp': function(data, type, row) {
|
217 |
return data.first_name + ' ' + data.last_name
|
190 |
return data.first_name + ' ' + data.last_name
|
Línea 439... |
Línea 412... |
439 |
}).always(function() {
|
412 |
}).always(function() {
|
440 |
NProgress.done();
|
413 |
NProgress.done();
|
441 |
});
|
414 |
});
|
442 |
});
|
415 |
});
|
Línea 443... |
Línea 416... |
443 |
|
416 |
|
- |
|
417 |
$('body').on('click', 'button.btn-delete', function(e) {
|
444 |
$('button.btn-delete').confirmation({
|
418 |
e.preventDefault();
|
- |
|
419 |
var action = $(this).data('href');
|
- |
|
420 |
|
- |
|
421 |
|
445 |
rootSelector: 'button.btn-delete',
|
422 |
swal.fire({
|
446 |
title: 'LABEL_ARE_YOU_SURE',
|
423 |
title: 'LABEL_ARE_YOU_SURE',
|
447 |
singleton: true,
|
424 |
icon: 'question',
|
- |
|
425 |
cancelButtonText: 'LABEL_NO',
|
448 |
btnOkLabel: 'LABEL_YES',
|
426 |
showCancelButton: true,
|
449 |
btnCancelLabel: 'LABEL_NO',
|
427 |
confirmButtonText: 'LABEL_YES'
|
450 |
onConfirm: function (value) {
|
428 |
}).then((result) => {
|
- |
|
429 |
if (result.isConfirmed) {
|
451 |
action = $(this).data('href');
|
430 |
|
452 |
NProgress.start();
|
431 |
NProgress.start();
|
453 |
$.ajax({
|
432 |
$.ajax({
|
454 |
'dataType': 'json',
|
433 |
'dataType' : 'json',
|
455 |
'accept': 'application/json',
|
434 |
'accept' : 'application/json',
|
456 |
'method': 'post',
|
435 |
'method' : 'post',
|
457 |
'url': $(this).data('url'),
|
436 |
'url' : action,
|
458 |
}).done(function (response) {
|
437 |
}).done(function(response) {
|
459 |
if (response['success']) {
|
438 |
if(response['success']) {
|
460 |
$.fn.showSuccess(response['data']);
|
439 |
$.fn.showSuccess(response['data']);
|
461 |
gridTable.api().ajax.reload(null, false);
|
440 |
gridTable.api().ajax.reload(null, false);
|
462 |
} else {
|
441 |
} else {
|
463 |
$.fn.showError(response['data']);
|
442 |
$.fn.showError(response['data']);
|
464 |
}
|
443 |
}
|
465 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
444 |
}).fail(function( jqXHR, textStatus, errorThrown) {
|
466 |
$.fn.showError(textStatus);
|
445 |
$.fn.showError(textStatus);
|
467 |
}).always(function () {
|
446 |
}).always(function() {
|
- |
|
447 |
NProgress.done();
|
468 |
NProgress.done();
|
448 |
});
|
469 |
});
|
449 |
}
|
470 |
},
|
450 |
});
|
Línea 471... |
Línea 451... |
471 |
});
|
451 |
});
|
472 |
|
452 |
|