Línea 18... |
Línea 18... |
18 |
$allowFileAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/applications/files/add') ? 1 : 0;
|
18 |
$allowFileAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/applications/files/add') ? 1 : 0;
|
19 |
$allowInterviewAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/applications/interviews/add') ? 1 : 0;
|
19 |
$allowInterviewAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/applications/interviews/add') ? 1 : 0;
|
Línea 20... |
Línea 20... |
20 |
|
20 |
|
21 |
|
21 |
|
Línea 22... |
Línea 22... |
22 |
|
22 |
|
23 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
23 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
|
24 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
24 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
|
Línea 25... |
Línea 25... |
25 |
|
25 |
|
26 |
|
26 |
|
Línea 27... |
Línea 27... |
27 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
27 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
28 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
28 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
29 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
29 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
30 |
|
30 |
|
Línea 31... |
Línea 31... |
31 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
31 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
|
32 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
32 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
|
Línea 33... |
Línea 33... |
33 |
|
33 |
|
34 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
34 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
|
35 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
|
35 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
|
36 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
|
36 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
|
37 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
|
37 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
|
38 |
|
38 |
|
Línea 39... |
Línea 39... |
39 |
|
39 |
|
40 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
|
40 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/css/fileinput.min.css'));
|
Línea 41... |
Línea 41... |
41 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fa/theme.css'));
|
41 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fa/theme.css'));
|
Línea 42... |
Línea 42... |
42 |
|
42 |
|
43 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
|
43 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/piexif.js'));
|
44 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
|
44 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/sortable.js'));
|
Línea 45... |
Línea 45... |
45 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
|
45 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
|
46 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
|
46 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));
|
Línea 47... |
Línea -... |
47 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fa/theme.js'));
|
- |
|
48 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fa/theme.js'));
|
- |
|
- |
|
47 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fa/theme.js'));
|
- |
|
48 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fa/theme.js'));
|
49 |
|
49 |
|
Línea 50... |
Línea 50... |
50 |
|
50 |
|
51 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
|
- |
|
- |
|
51 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2/css/select2.min.css'));
|
Línea 52... |
Línea 52... |
52 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
|
52 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
|
53 |
|
53 |
|
Línea 54... |
Línea 54... |
54 |
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.full.min.js'));
|
54 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/select2/js/select2.full.min.js'));
|
55 |
|
55 |
|
56 |
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
|
56 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/moment/moment-with-locales.min.js'));
|
Línea 194... |
Línea 194... |
194 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
194 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
195 |
},
|
195 |
},
|
196 |
},
|
196 |
},
|
197 |
'drawCallback': function(settings) {
|
197 |
'drawCallback': function(settings) {
|
198 |
NProgress.done();
|
198 |
NProgress.done();
|
199 |
$('button.btn-delete').confirmation({
|
- |
|
200 |
rootSelector: 'button.btn-delete',
|
- |
|
201 |
title: 'LABEL_ARE_YOU_SURE',
|
- |
|
202 |
singleton: true,
|
- |
|
203 |
btnOkLabel: 'LABEL_YES',
|
- |
|
204 |
btnCancelLabel: 'LABEL_NO',
|
- |
|
205 |
onConfirm: function(value) {
|
- |
|
206 |
action = $(this).data('href');
|
- |
|
207 |
NProgress.start();
|
- |
|
208 |
$.ajax({
|
- |
|
209 |
'dataType': 'json',
|
- |
|
210 |
'accept': 'application/json',
|
- |
|
211 |
'method': 'post',
|
- |
|
212 |
'url': action,
|
- |
|
213 |
}).done(function(response) {
|
- |
|
214 |
if (response['success']) {
|
- |
|
215 |
$.fn.showSuccess(response['data']);
|
- |
|
216 |
gridTable.api().ajax.reload(null, false);
|
- |
|
217 |
} else {
|
- |
|
218 |
$.fn.showError(response['data']);
|
- |
|
219 |
}
|
- |
|
220 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
- |
|
221 |
$.fn.showError(textStatus);
|
- |
|
222 |
}).always(function() {
|
- |
|
223 |
NProgress.done();
|
- |
|
224 |
});
|
- |
|
225 |
},
|
- |
|
226 |
});
|
199 |
|
227 |
},
|
200 |
},
|
228 |
'aoColumns': [
|
201 |
'aoColumns': [
|
229 |
{ 'mDataProp': 'first_name' },
|
202 |
{ 'mDataProp': 'first_name' },
|
230 |
{ 'mDataProp': 'last_name' },
|
203 |
{ 'mDataProp': 'last_name' },
|
231 |
{ 'mDataProp': 'email' },
|
204 |
{ 'mDataProp': 'email' },
|
Línea 632... |
Línea 605... |
632 |
e.preventDefault();
|
605 |
e.preventDefault();
|
633 |
gridTable.api().ajax.reload(null, false);
|
606 |
gridTable.api().ajax.reload(null, false);
|
Línea 634... |
Línea 607... |
634 |
|
607 |
|
Línea -... |
Línea 608... |
- |
|
608 |
});
|
- |
|
609 |
|
- |
|
610 |
$('body').on('click', 'button.btn-delete', function(e) {
|
Línea -... |
Línea 611... |
- |
|
611 |
e.preventDefault();
|
- |
|
612 |
var action = $(this).data('href');
|
- |
|
613 |
|
- |
|
614 |
|
- |
|
615 |
swal.fire({
|
- |
|
616 |
title: 'LABEL_ARE_YOU_SURE',
|
- |
|
617 |
icon: 'question',
|
- |
|
618 |
cancelButtonText: 'LABEL_NO',
|
- |
|
619 |
showCancelButton: true,
|
- |
|
620 |
confirmButtonText: 'LABEL_YES'
|
- |
|
621 |
}).then((result) => {
|
- |
|
622 |
if (result.isConfirmed) {
|
- |
|
623 |
|
- |
|
624 |
NProgress.start();
|
- |
|
625 |
$.ajax({
|
- |
|
626 |
'dataType' : 'json',
|
- |
|
627 |
'accept' : 'application/json',
|
- |
|
628 |
'method' : 'post',
|
- |
|
629 |
'url' : action,
|
- |
|
630 |
}).done(function(response) {
|
- |
|
631 |
if(response['success']) {
|
- |
|
632 |
$.fn.showSuccess(response['data']);
|
- |
|
633 |
gridTable.api().ajax.reload(null, false);
|
- |
|
634 |
} else {
|
- |
|
635 |
$.fn.showError(response['data']);
|
- |
|
636 |
}
|
- |
|
637 |
}).fail(function( jqXHR, textStatus, errorThrown) {
|
- |
|
638 |
$.fn.showError(textStatus);
|
- |
|
639 |
}).always(function() {
|
- |
|
640 |
NProgress.done();
|
- |
|
641 |
});
|
Línea 635... |
Línea 642... |
635 |
});
|
642 |
}
|
636 |
|
643 |
});
|
637 |
|
644 |
});
|