Línea 12... |
Línea 12... |
12 |
|
12 |
|
13 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/add') ? 1 : 0;
|
13 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/add') ? 1 : 0;
|
14 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/delete') ? 1 : 0;
|
14 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/delete') ? 1 : 0;
|
Línea 15... |
Línea 15... |
15 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/edit') ? 1 : 0;
|
15 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/edit') ? 1 : 0;
|
16 |
|
16 |
|
Línea 17... |
Línea 17... |
17 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
17 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
|
Línea 18... |
Línea -... |
18 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
- |
|
Línea 19... |
Línea -... |
19 |
|
- |
|
20 |
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
|
- |
|
Línea 21... |
Línea -... |
21 |
|
- |
|
22 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
|
- |
|
23 |
|
18 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
|
24 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
|
- |
|
25 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
- |
|
26 |
|
19 |
|
Línea -... |
Línea 20... |
- |
|
20 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
|
- |
|
21 |
|
- |
|
22 |
|
- |
|
23 |
|
- |
|
24 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/css/fileinput.min.css'));
|
- |
|
25 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
Línea 27... |
Línea -... |
27 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
|
- |
|
28 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
|
- |
|
29 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
|
- |
|
Línea -... |
Línea 26... |
- |
|
26 |
|
30 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
|
27 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/piexif.js'));
|
31 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
|
28 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/assets/vendors/sortable.js'));
|
Línea 32... |
Línea -... |
32 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
- |
|
33 |
|
29 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/fileinput.js'));
|
34 |
|
- |
|
35 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
30 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/js/locales/es.js'));
|
Línea -... |
Línea 31... |
- |
|
31 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/fas/theme.js'));
|
- |
|
32 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
- |
|
33 |
|
- |
|
34 |
|
Línea 36... |
Línea -... |
36 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
- |
|
37 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
- |
|
38 |
|
- |
|
Línea -... |
Línea 35... |
- |
|
35 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
- |
|
36 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
- |
|
37 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
Línea 39... |
Línea -... |
39 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
- |
|
40 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
- |
|
Línea -... |
Línea 38... |
- |
|
38 |
|
- |
|
39 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
|
- |
|
40 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
|
41 |
|
41 |
|
42 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
42 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
|
43 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
|
43 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
|
- |
|
44 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
|
- |
|
45 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
|
- |
|
46 |
|
Línea 44... |
Línea -... |
44 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
|
- |
|
Línea 45... |
Línea -... |
45 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
|
- |
|
46 |
|
- |
|
Línea 47... |
Línea 47... |
47 |
|
47 |
|
48 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
48 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
49 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
49 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
Línea 143... |
Línea 143... |
143 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
143 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
144 |
},
|
144 |
},
|
145 |
},
|
145 |
},
|
146 |
'drawCallback': function (settings) {
|
146 |
'drawCallback': function (settings) {
|
147 |
NProgress.done();
|
147 |
NProgress.done();
|
148 |
$('button.btn-delete').confirmation({
|
- |
|
149 |
rootSelector: 'button.btn-delete',
|
- |
|
150 |
title: 'LABEL_ARE_YOU_SURE',
|
- |
|
151 |
singleton: true,
|
- |
|
152 |
btnOkLabel: 'LABEL_YES',
|
- |
|
153 |
btnCancelLabel: 'LABEL_NO',
|
- |
|
154 |
onConfirm: function (value) {
|
- |
|
155 |
action = $(this).data('href');
|
- |
|
156 |
NProgress.start();
|
- |
|
157 |
$.ajax({
|
- |
|
158 |
'dataType': 'json',
|
- |
|
159 |
'accept': 'application/json',
|
- |
|
160 |
'method': 'post',
|
- |
|
161 |
'url': action,
|
- |
|
162 |
}).done(function (response) {
|
- |
|
163 |
if (response['success']) {
|
- |
|
164 |
$.fn.showSuccess(response['data']);
|
- |
|
165 |
gridTable.api().ajax.reload(null, false);
|
- |
|
166 |
} else {
|
- |
|
167 |
$.fn.showError(response['data']);
|
- |
|
168 |
}
|
- |
|
169 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
- |
|
170 |
$.fn.showError(textStatus);
|
- |
|
171 |
}).always(function () {
|
- |
|
172 |
NProgress.done();
|
- |
|
173 |
});
|
- |
|
174 |
},
|
- |
|
175 |
});
|
148 |
|
Línea 176... |
Línea 149... |
176 |
|
149 |
|
177 |
$('#form-add #file').fileinput({
|
150 |
$('#form-add #file').fileinput({
|
178 |
theme: 'fas',
|
151 |
theme: 'fas',
|
179 |
language: 'es',
|
152 |
language: 'es',
|