| 1631 |
eleazar |
1 |
<?php
|
|
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
|
|
3 |
$currentUser = $this->currentUserHelper();
|
|
|
4 |
$roleName = $currentUser->getUserTypeId();
|
| 1481 |
eleazar |
5 |
|
| 1482 |
eleazar |
6 |
$routeDatatable = $this->url('recruitment-and-selection/candidates');
|
| 1637 |
eleazar |
7 |
$routeEmail = $this->url('recruitment-and-selection/user-by-email');
|
| 1506 |
eleazar |
8 |
$routeAdd = $this->url('recruitment-and-selection/candidates/add', ['vacancy_uuid' => 'UUID_PLACEHOLDER']);
|
| 1481 |
eleazar |
9 |
|
| 1482 |
eleazar |
10 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/add') ? 1 : 0;
|
|
|
11 |
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/delete') ? 1 : 0;
|
| 1613 |
eleazar |
12 |
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/candidates/edit') ? 1 : 0;
|
| 1636 |
eleazar |
13 |
$allowEmail = $acl->isAllowed($roleName, 'recruitment-and-selection/user-by-email') ? 1 : 0;
|
| 1481 |
eleazar |
14 |
|
|
|
15 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
|
|
16 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
|
|
17 |
|
| 1649 |
eleazar |
18 |
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
|
| 1481 |
eleazar |
19 |
|
|
|
20 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
|
|
|
21 |
|
| 1490 |
eleazar |
22 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
|
|
|
23 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
|
| 1481 |
eleazar |
24 |
|
| 1490 |
eleazar |
25 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
|
|
|
26 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
|
|
|
27 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
|
|
|
28 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
|
|
|
29 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
|
|
|
30 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
|
|
|
31 |
|
|
|
32 |
|
| 1481 |
eleazar |
33 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
|
|
34 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
|
|
35 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
|
|
36 |
|
|
|
37 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
|
|
38 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
|
|
39 |
|
|
|
40 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
|
|
41 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
|
|
|
42 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
|
|
|
43 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
|
|
47 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
|
|
48 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
|
|
52 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
|
|
53 |
|
| 1886 |
eleazar |
54 |
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
|
|
|
55 |
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/i18n/es.js'));
|
|
|
56 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
|
|
|
57 |
|
|
|
58 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
|
|
|
59 |
|
| 1481 |
eleazar |
60 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
|
|
|
61 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
|
|
|
62 |
|
|
|
63 |
|
| 3880 |
eleazar |
64 |
$status_active = \LeadersLinked\Model\RecruitmentSelectionCandidate::STATUS_ACEPTED;
|
| 3878 |
eleazar |
65 |
$status_inactive = \LeadersLinked\Model\RecruitmentSelectionCandidate::STATUS_REJECTED;
|
| 1649 |
eleazar |
66 |
|
| 1658 |
eleazar |
67 |
$evaluation_0 = \LeadersLinked\Model\RecruitmentSelectionCandidate::EVALUATION_0;
|
|
|
68 |
$evaluation_1 = \LeadersLinked\Model\RecruitmentSelectionCandidate::EVALUATION_1;
|
|
|
69 |
$evaluation_2 = \LeadersLinked\Model\RecruitmentSelectionCandidate::EVALUATION_2;
|
|
|
70 |
$evaluation_3 = \LeadersLinked\Model\RecruitmentSelectionCandidate::EVALUATION_3;
|
|
|
71 |
$evaluation_4 = \LeadersLinked\Model\RecruitmentSelectionCandidate::EVALUATION_4;
|
| 1649 |
eleazar |
72 |
|
| 1481 |
eleazar |
73 |
$this->inlineScript()->captureStart();
|
|
|
74 |
echo <<<JS
|
| 8565 |
efrain |
75 |
$.prototype.fileinput.Constructor.prototype["setUploadUrl"] = function(url) {
|
|
|
76 |
this.uploadUrl = url;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
|
| 1631 |
eleazar |
80 |
jQuery(document).ready(function ($) {
|
| 8557 |
efrain |
81 |
|
|
|
82 |
|
|
|
83 |
|
| 1481 |
eleazar |
84 |
var allowAdd = $allowAdd;
|
| 1613 |
eleazar |
85 |
var allowDelete = $allowDelete;
|
|
|
86 |
var allowEdit = $allowEdit;
|
| 1630 |
eleazar |
87 |
var allowEmail = $allowEmail;
|
| 1481 |
eleazar |
88 |
|
| 1631 |
eleazar |
89 |
var gridTable = $('#gridTable').dataTable({
|
|
|
90 |
'processing': true,
|
|
|
91 |
'serverSide': true,
|
|
|
92 |
'searching': true,
|
|
|
93 |
'order': [[1, 'asc']],
|
|
|
94 |
'ordering': true,
|
|
|
95 |
'ordenable': true,
|
|
|
96 |
'responsive': true,
|
|
|
97 |
'select': false,
|
|
|
98 |
'paging': true,
|
|
|
99 |
'pagingType': 'simple_numbers',
|
|
|
100 |
'lengthMenu': [[10, 25, 50, -1], [10, 25, 50, 'All']],
|
| 1481 |
eleazar |
101 |
|
| 1631 |
eleazar |
102 |
'ajax': {
|
|
|
103 |
'url': '$routeDatatable',
|
|
|
104 |
'type': 'get',
|
|
|
105 |
'data': function (d) {
|
| 1481 |
eleazar |
106 |
},
|
| 1631 |
eleazar |
107 |
'beforeSend': function (request) {
|
|
|
108 |
NProgress.start();
|
|
|
109 |
},
|
|
|
110 |
'dataFilter': function (response) {
|
|
|
111 |
var response = jQuery.parseJSON(response);
|
| 1481 |
eleazar |
112 |
|
| 1631 |
eleazar |
113 |
var json = {};
|
|
|
114 |
json.recordsTotal = 0;
|
|
|
115 |
json.recordsFiltered = 0;
|
|
|
116 |
json.data = [];
|
| 1481 |
eleazar |
117 |
|
| 1631 |
eleazar |
118 |
if (response.success) {
|
|
|
119 |
json.recordsTotal = response.data.total;
|
|
|
120 |
json.recordsFiltered = response.data.total;
|
|
|
121 |
json.data = response.data.items;
|
|
|
122 |
} else {
|
|
|
123 |
$.fn.showError(response.data)
|
|
|
124 |
}
|
| 1484 |
eleazar |
125 |
|
| 1631 |
eleazar |
126 |
return JSON.stringify(json);
|
|
|
127 |
}
|
|
|
128 |
},
|
|
|
129 |
'language': {
|
|
|
130 |
'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
|
|
|
131 |
'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
|
|
|
132 |
'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
|
|
|
133 |
'sEmptyTable': 'LABEL_DATATABLE_SEMPTYTABLE',
|
|
|
134 |
'sInfo': 'LABEL_DATATABLE_SINFO',
|
|
|
135 |
'sInfoEmpty': 'LABEL_DATATABLE_SINFOEMPTY',
|
|
|
136 |
'sInfoFiltered': 'LABEL_DATATABLE_SINFOFILTERED',
|
|
|
137 |
'sInfoPostFix': '',
|
|
|
138 |
'sSearch': 'LABEL_DATATABLE_SSEARCH',
|
|
|
139 |
'sUrl': '',
|
|
|
140 |
'sInfoThousands': ',',
|
|
|
141 |
'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
|
|
|
142 |
'oPaginate': {
|
|
|
143 |
'sFirst': 'LABEL_DATATABLE_SFIRST',
|
|
|
144 |
'sLast': 'LABEL_DATATABLE_SLAST',
|
|
|
145 |
'sNext': 'LABEL_DATATABLE_SNEXT',
|
|
|
146 |
'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
|
|
|
147 |
},
|
|
|
148 |
'oAria': {
|
|
|
149 |
'sSortAscending': ': LABEL_DATATABLE_SSORTASCENDING',
|
|
|
150 |
'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
|
|
|
151 |
},
|
|
|
152 |
},
|
|
|
153 |
'drawCallback': function (settings) {
|
|
|
154 |
NProgress.done();
|
|
|
155 |
$('button.btn-delete').confirmation({
|
|
|
156 |
rootSelector: 'button.btn-delete',
|
|
|
157 |
title: 'LABEL_ARE_YOU_SURE',
|
|
|
158 |
singleton: true,
|
|
|
159 |
btnOkLabel: 'LABEL_YES',
|
|
|
160 |
btnCancelLabel: 'LABEL_NO',
|
|
|
161 |
onConfirm: function (value) {
|
|
|
162 |
action = $(this).data('href');
|
|
|
163 |
NProgress.start();
|
|
|
164 |
$.ajax({
|
|
|
165 |
'dataType': 'json',
|
|
|
166 |
'accept': 'application/json',
|
|
|
167 |
'method': 'post',
|
|
|
168 |
'url': action,
|
|
|
169 |
}).done(function (response) {
|
|
|
170 |
if (response['success']) {
|
|
|
171 |
$.fn.showSuccess(response['data']);
|
|
|
172 |
gridTable.api().ajax.reload(null, false);
|
|
|
173 |
} else {
|
|
|
174 |
$.fn.showError(response['data']);
|
|
|
175 |
}
|
|
|
176 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
|
|
177 |
$.fn.showError(textStatus);
|
|
|
178 |
}).always(function () {
|
|
|
179 |
NProgress.done();
|
|
|
180 |
});
|
|
|
181 |
},
|
|
|
182 |
});
|
| 1484 |
eleazar |
183 |
|
| 1631 |
eleazar |
184 |
$('#form-add #file').fileinput({
|
|
|
185 |
theme: 'fas',
|
|
|
186 |
language: 'es',
|
|
|
187 |
showUpload: false,
|
|
|
188 |
dropZoneEnabled: false,
|
|
|
189 |
maxFileCount: 1,
|
|
|
190 |
allowedFileExtensions: ['pdf', 'docx'],
|
|
|
191 |
});
|
| 1484 |
eleazar |
192 |
|
| 8567 |
eleazar |
193 |
$('#form-edit #file').fileinput({
|
| 8570 |
eleazar |
194 |
theme: 'fas',
|
|
|
195 |
language: 'es',
|
| 8614 |
eleazar |
196 |
showUpload: false,
|
|
|
197 |
initialPreviewAsData: true,
|
| 8615 |
eleazar |
198 |
dropZoneEnabled: false,
|
| 8570 |
eleazar |
199 |
maxFileCount: 1,
|
| 8567 |
eleazar |
200 |
allowedFileExtensions: ['pdf', 'docx'],
|
|
|
201 |
});
|
|
|
202 |
|
|
|
203 |
|
| 1631 |
eleazar |
204 |
$('body').on('click', 'button.btn-add', function (e) {
|
|
|
205 |
e.preventDefault();
|
| 1484 |
eleazar |
206 |
|
| 1660 |
eleazar |
207 |
$('#form-add #user_id').val('');
|
| 1631 |
eleazar |
208 |
$('#form-add #first_name').val('');
|
|
|
209 |
$('#form-add #last_name').val('');
|
|
|
210 |
$('#form-add #email').val('');
|
|
|
211 |
$('#form-add #file').fileinput('reset');
|
|
|
212 |
$('#form-add #file').val('');
|
| 1649 |
eleazar |
213 |
$('#form-add #status').val('$status_active');
|
| 1659 |
eleazar |
214 |
$('#form-add #evaluation').val('$evaluation_0');
|
| 3866 |
eleazar |
215 |
$('#first-step').show();
|
| 3877 |
eleazar |
216 |
$('#second-step').hide();
|
| 1653 |
eleazar |
217 |
CKEDITOR.instances.coment.setData('');
|
| 1631 |
eleazar |
218 |
validatorAdd.resetForm();
|
| 8600 |
eleazar |
219 |
|
| 1631 |
eleazar |
220 |
$('#add-candidate-box').modal('show');
|
|
|
221 |
return false;
|
|
|
222 |
});
|
| 1616 |
eleazar |
223 |
|
| 1631 |
eleazar |
224 |
$(".close-box, .btn-add-cancel").on("click", function (e) {
|
|
|
225 |
e.preventDefault();
|
| 3852 |
eleazar |
226 |
$('#form-add #first_name').prop("disabled", false);
|
|
|
227 |
$('#form-add #last_name').prop('disabled', false);
|
| 3866 |
eleazar |
228 |
$('#secon-step').hide();
|
| 1631 |
eleazar |
229 |
$('#add-candidate-box').modal('hide');
|
|
|
230 |
$('#edit-candidate-box').modal('hide');
|
|
|
231 |
return false;
|
| 1616 |
eleazar |
232 |
});
|
|
|
233 |
|
| 1631 |
eleazar |
234 |
var validatorEdit = $('#form-edit').validate({
|
|
|
235 |
debug: true,
|
|
|
236 |
onclick: false,
|
|
|
237 |
onkeyup: false,
|
|
|
238 |
onfocusout: false,
|
|
|
239 |
ignore: [],
|
|
|
240 |
rules: {
|
| 1660 |
eleazar |
241 |
'user_id': {
|
|
|
242 |
required: false,
|
|
|
243 |
},
|
| 1631 |
eleazar |
244 |
'first_name': {
|
|
|
245 |
required: true,
|
|
|
246 |
maxlength: 128,
|
|
|
247 |
},
|
|
|
248 |
'file': {
|
|
|
249 |
required: false,
|
|
|
250 |
extension: 'pdf|docx',
|
|
|
251 |
accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
|
|
|
252 |
},
|
|
|
253 |
'last_name': {
|
|
|
254 |
required: true,
|
|
|
255 |
},
|
|
|
256 |
'email': {
|
|
|
257 |
required: true,
|
|
|
258 |
},
|
| 1658 |
eleazar |
259 |
'evaluation':{
|
| 1649 |
eleazar |
260 |
required: false,
|
|
|
261 |
},
|
| 1654 |
eleazar |
262 |
'coment':{
|
|
|
263 |
updateCkeditor:function() {
|
| 1656 |
eleazar |
264 |
CKEDITOR.instances.coment.updateElement();
|
| 1654 |
eleazar |
265 |
},
|
| 1649 |
eleazar |
266 |
},
|
| 1631 |
eleazar |
267 |
'status': {
|
|
|
268 |
required: true,
|
|
|
269 |
}
|
|
|
270 |
},
|
|
|
271 |
submitHandler: function (form) {
|
|
|
272 |
var formdata = false;
|
|
|
273 |
if (window.FormData) {
|
|
|
274 |
formdata = new FormData(form); //form[0]);
|
|
|
275 |
}
|
| 1616 |
eleazar |
276 |
|
| 1631 |
eleazar |
277 |
$('input[type="submit"]').prop('disabled', true);
|
| 1616 |
eleazar |
278 |
|
| 1631 |
eleazar |
279 |
$.ajax({
|
|
|
280 |
'dataType': 'json',
|
|
|
281 |
'accept': 'application/json',
|
|
|
282 |
'method': 'post',
|
|
|
283 |
'url': $('#form-edit').attr('action'),
|
|
|
284 |
'data': formdata,
|
|
|
285 |
'processData': false,
|
|
|
286 |
'contentType': false,
|
|
|
287 |
}).done(function (response) {
|
|
|
288 |
if (response['success']) {
|
|
|
289 |
$.fn.showSuccess(response['data']);
|
|
|
290 |
|
|
|
291 |
$('#edit-candidate-box').modal('hide');
|
|
|
292 |
gridTable.api().ajax.reload(null, false);
|
|
|
293 |
} else {
|
|
|
294 |
validatorEdit.resetForm();
|
|
|
295 |
if (jQuery.type(response['data']) == 'string') {
|
|
|
296 |
$.fn.showError(response['data']);
|
|
|
297 |
} else {
|
|
|
298 |
$.each(response['data'], function (fieldname, errors) {
|
|
|
299 |
$.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
|
|
|
300 |
});
|
|
|
301 |
}
|
|
|
302 |
}
|
|
|
303 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
|
|
304 |
$.fn.showError(textStatus);
|
|
|
305 |
}).always(function () {
|
|
|
306 |
NProgress.done();
|
|
|
307 |
});
|
|
|
308 |
return false;
|
|
|
309 |
},
|
|
|
310 |
invalidHandler: function (form, validator) {
|
|
|
311 |
|
| 1616 |
eleazar |
312 |
}
|
|
|
313 |
});
|
|
|
314 |
|
| 1631 |
eleazar |
315 |
$('body').on('click', 'button.btn-edit', function (e) {
|
|
|
316 |
e.preventDefault();
|
| 1486 |
eleazar |
317 |
|
| 1631 |
eleazar |
318 |
var url = $(this).data('href');
|
|
|
319 |
$.ajax({
|
|
|
320 |
'dataType': 'json',
|
|
|
321 |
'accept': 'application/json',
|
|
|
322 |
'method': 'get',
|
|
|
323 |
'url': url,
|
|
|
324 |
}).done(function (response) {
|
|
|
325 |
if (response['success']) {
|
| 8603 |
eleazar |
326 |
$('#form-edit')[0].reset();
|
| 1486 |
eleazar |
327 |
|
| 8603 |
eleazar |
328 |
$('#form-edit').attr('action', url);
|
| 1660 |
eleazar |
329 |
|
| 8603 |
eleazar |
330 |
$('#form-edit #first_name').val(response['data']['user_id']);
|
|
|
331 |
$('#form-edit #first_name').val(response['data']['first_name']);
|
|
|
332 |
$('#form-edit #last_name').val(response['data']['last_name']);
|
|
|
333 |
$('#form-edit #email').val(response['data']['email']);
|
|
|
334 |
$('#form-edit #status').val(response['data']['status']);
|
|
|
335 |
$('#form-edit #evaluation').val(response['data']['evaluation']);
|
|
|
336 |
$('#form-edit #coment').val(response['data']['coment']);
|
| 8620 |
eleazar |
337 |
$('#form-edit #btn-cv').attr('href', response['data']['file']);
|
|
|
338 |
|
| 8598 |
eleazar |
339 |
|
| 8555 |
efrain |
340 |
|
| 8603 |
eleazar |
341 |
$('#form-edit #file').fileinput('reset');
|
|
|
342 |
$('#form-edit #file').fileinput('setUploadUrl', response['data']['file'] );
|
| 1631 |
eleazar |
343 |
|
|
|
344 |
|
| 8603 |
eleazar |
345 |
$('#form-edit #status').val(response['data']['status']);
|
| 1631 |
eleazar |
346 |
|
| 8603 |
eleazar |
347 |
$('#edit-candidate-box').modal('show');
|
| 1631 |
eleazar |
348 |
} else {
|
| 8603 |
eleazar |
349 |
validatorEdit.resetForm();
|
| 1631 |
eleazar |
350 |
if (jQuery.type(response['data']) == 'string') {
|
|
|
351 |
$.fn.showError(response['data']);
|
|
|
352 |
} else {
|
|
|
353 |
$.each(response['data'], function (fieldname, errors) {
|
| 8603 |
eleazar |
354 |
$.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
|
| 1631 |
eleazar |
355 |
});
|
|
|
356 |
}
|
| 1486 |
eleazar |
357 |
}
|
| 1631 |
eleazar |
358 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
|
|
359 |
$.fn.showError(textStatus);
|
|
|
360 |
}).always(function () {
|
|
|
361 |
NProgress.done();
|
|
|
362 |
});
|
| 1486 |
eleazar |
363 |
});
|
|
|
364 |
|
| 1631 |
eleazar |
365 |
var validatorAdd = $('#form-add').validate({
|
|
|
366 |
debug: true,
|
|
|
367 |
onclick: false,
|
|
|
368 |
onkeyup: false,
|
|
|
369 |
onfocusout: false,
|
|
|
370 |
ignore: [],
|
|
|
371 |
rules: {
|
| 1660 |
eleazar |
372 |
'user_id': {
|
|
|
373 |
required: false,
|
|
|
374 |
},
|
| 1631 |
eleazar |
375 |
'first_name': {
|
|
|
376 |
required: true,
|
|
|
377 |
maxlength: 128,
|
|
|
378 |
},
|
|
|
379 |
'file': {
|
|
|
380 |
required: false,
|
|
|
381 |
extension: 'pdf|docx',
|
|
|
382 |
accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
|
|
|
383 |
},
|
|
|
384 |
'last_name': {
|
|
|
385 |
required: true,
|
|
|
386 |
},
|
|
|
387 |
'email': {
|
|
|
388 |
required: true,
|
|
|
389 |
},
|
| 1658 |
eleazar |
390 |
'evaluation':{
|
| 1649 |
eleazar |
391 |
required: false,
|
|
|
392 |
},
|
| 1654 |
eleazar |
393 |
'coment':{
|
|
|
394 |
updateCkeditor:function() {
|
| 1656 |
eleazar |
395 |
CKEDITOR.instances.coment.updateElement();
|
| 1654 |
eleazar |
396 |
},
|
| 1649 |
eleazar |
397 |
},
|
| 1631 |
eleazar |
398 |
'status': {
|
|
|
399 |
required: true,
|
|
|
400 |
}
|
|
|
401 |
},
|
|
|
402 |
submitHandler: function (form) {
|
|
|
403 |
var formdata = false;
|
|
|
404 |
if (window.FormData) {
|
|
|
405 |
formdata = new FormData(form); //form[0]);
|
|
|
406 |
}
|
| 1630 |
eleazar |
407 |
|
| 1631 |
eleazar |
408 |
$('input[type="submit"]').prop('disabled', true);
|
| 1630 |
eleazar |
409 |
|
| 1631 |
eleazar |
410 |
$.ajax({
|
|
|
411 |
'dataType': 'json',
|
|
|
412 |
'accept': 'application/json',
|
|
|
413 |
'method': 'post',
|
|
|
414 |
'url': $('#form-add').attr('action'),
|
|
|
415 |
'data': formdata,
|
|
|
416 |
'processData': false,
|
|
|
417 |
'contentType': false,
|
|
|
418 |
}).done(function (response) {
|
|
|
419 |
if (response['success']) {
|
|
|
420 |
$.fn.showSuccess(response['data']);
|
|
|
421 |
|
|
|
422 |
$('#add-candidate-box').modal('hide');
|
|
|
423 |
gridTable.api().ajax.reload(null, false);
|
|
|
424 |
} else {
|
|
|
425 |
validatorAdd.resetForm();
|
|
|
426 |
if (jQuery.type(response['data']) == 'string') {
|
|
|
427 |
$.fn.showError(response['data']);
|
|
|
428 |
} else {
|
|
|
429 |
$.each(response['data'], function (fieldname, errors) {
|
|
|
430 |
$.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
|
|
|
431 |
});
|
|
|
432 |
}
|
|
|
433 |
}
|
|
|
434 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
|
|
435 |
$.fn.showError(textStatus);
|
|
|
436 |
}).always(function () {
|
|
|
437 |
NProgress.done();
|
|
|
438 |
});
|
|
|
439 |
return false;
|
|
|
440 |
},
|
|
|
441 |
invalidHandler: function (form, validator) {
|
|
|
442 |
|
| 1630 |
eleazar |
443 |
}
|
|
|
444 |
});
|
|
|
445 |
},
|
| 1631 |
eleazar |
446 |
'aoColumns': [
|
|
|
447 |
{ 'mDataProp': 'first_name' },
|
|
|
448 |
{ 'mDataProp': 'last_name' },
|
|
|
449 |
{ 'mDataProp': 'email' },
|
|
|
450 |
{ 'mDataProp': 'actions' },
|
|
|
451 |
],
|
|
|
452 |
'columnDefs': [
|
|
|
453 |
{
|
|
|
454 |
'targets': -1,
|
|
|
455 |
'orderable': false,
|
|
|
456 |
'render': function (data, type, row) {
|
|
|
457 |
s = '';
|
| 1630 |
eleazar |
458 |
|
| 1631 |
eleazar |
459 |
if (allowEdit && data['link_edit']) {
|
|
|
460 |
s = s + '<button class="btn btn-info btn-sm btn-edit" data-href="' + data['link_edit'] + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button> ';
|
|
|
461 |
}
|
| 1481 |
eleazar |
462 |
|
| 1631 |
eleazar |
463 |
if (allowDelete && data['link_delete']) {
|
|
|
464 |
s = s + '<button class="btn btn-danger btn-sm btn-delete" data-href="' + data['link_delete'] + '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-times"></i> LABEL_DELETE </button> ';
|
|
|
465 |
}
|
| 1614 |
eleazar |
466 |
|
| 1631 |
eleazar |
467 |
return s;
|
| 1481 |
eleazar |
468 |
}
|
| 1631 |
eleazar |
469 |
}
|
|
|
470 |
],
|
|
|
471 |
});
|
| 1481 |
eleazar |
472 |
|
| 1631 |
eleazar |
473 |
$('#form-filter #form_uuid').change(function (e) {
|
| 1481 |
eleazar |
474 |
e.preventDefault();
|
|
|
475 |
|
| 1503 |
eleazar |
476 |
var uuid = e.target.value;
|
|
|
477 |
|
| 1507 |
eleazar |
478 |
$('#form-add').attr('action', String("$routeAdd").replaceAll('UUID_PLACEHOLDER', uuid));
|
| 1503 |
eleazar |
479 |
|
| 1599 |
eleazar |
480 |
gridTable.api().ajax.url("$routeDatatable" + "/" + uuid);
|
| 1481 |
eleazar |
481 |
gridTable.api().ajax.reload(null, false);
|
|
|
482 |
})
|
|
|
483 |
|
|
|
484 |
|
| 1631 |
eleazar |
485 |
$('body').on('click', 'button.btn-refresh', function (e) {
|
| 1481 |
eleazar |
486 |
e.preventDefault();
|
|
|
487 |
gridTable.api().ajax.reload(null, false);
|
|
|
488 |
});
|
| 1507 |
eleazar |
489 |
|
| 3875 |
eleazar |
490 |
$('body').on('click', '#btn-next', function () {
|
| 3869 |
eleazar |
491 |
$("#first-step").hide();
|
|
|
492 |
$("#second-step").show();
|
|
|
493 |
});
|
|
|
494 |
|
| 1507 |
eleazar |
495 |
$('#form-filter #form_uuid').change();
|
| 1642 |
eleazar |
496 |
|
|
|
497 |
$('body').on('click', '#check-email', function () {
|
|
|
498 |
$.ajax("$routeEmail", {
|
|
|
499 |
accepts: 'application/json',
|
|
|
500 |
method: 'GET',
|
|
|
501 |
data: {
|
|
|
502 |
'email': $('#form-add #email').val(),
|
|
|
503 |
}
|
| 1648 |
eleazar |
504 |
}).done(function (response) {
|
|
|
505 |
if (response['success']) {
|
| 1662 |
eleazar |
506 |
$('#form-add #user_id').val(response['data']['user_id']);
|
| 1648 |
eleazar |
507 |
$('#form-add #first_name').val(response['data']['first_name']);
|
|
|
508 |
$('#form-add #last_name').val(response['data']['last_name']);
|
| 3876 |
eleazar |
509 |
// $('#form-add #first_name').prop("disabled", true);
|
|
|
510 |
// $('#form-add #last_name').prop('disabled', true);
|
| 1648 |
eleazar |
511 |
} else {
|
| 1646 |
eleazar |
512 |
$.fn.showError(response['data']);
|
|
|
513 |
}
|
|
|
514 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
|
|
515 |
$.fn.showError(textStatus);
|
|
|
516 |
}).always(function () {
|
|
|
517 |
NProgress.done();
|
|
|
518 |
});
|
| 1648 |
eleazar |
519 |
})
|
| 1655 |
eleazar |
520 |
|
| 8767 |
stevensc |
521 |
CKEDITOR.replace('coment', {
|
|
|
522 |
toolbar: [
|
|
|
523 |
{ name: 'editing', items: ['Scayt'] },
|
|
|
524 |
{ name: 'links', items: ['Link', 'Unlink'] },
|
|
|
525 |
{ name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
|
|
|
526 |
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
|
|
|
527 |
'/',
|
|
|
528 |
{ name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
|
|
|
529 |
{ name: 'styles', items: ['Styles', 'Format'] },
|
|
|
530 |
{ name: 'tools', items: ['Maximize'] }
|
|
|
531 |
],
|
|
|
532 |
removePlugins: 'elementspath,Anchor',
|
|
|
533 |
heigth: 100
|
|
|
534 |
});
|
| 1481 |
eleazar |
535 |
});
|
|
|
536 |
JS;
|
|
|
537 |
$this->inlineScript()->captureEnd();
|
|
|
538 |
?>
|
|
|
539 |
|
|
|
540 |
|
|
|
541 |
<!-- Content Header (Page header) -->
|
|
|
542 |
<section class="content-header">
|
| 1631 |
eleazar |
543 |
<div class="container-fluid">
|
|
|
544 |
<div class="row mb-2">
|
|
|
545 |
<div class="col-sm-12">
|
| 4241 |
eleazar |
546 |
<h1>LABEL_PRE_SELECTION</h1>
|
| 1631 |
eleazar |
547 |
</div>
|
|
|
548 |
</div>
|
|
|
549 |
</div><!-- /.container-fluid -->
|
| 1481 |
eleazar |
550 |
</section>
|
|
|
551 |
|
|
|
552 |
<section class="content">
|
| 1631 |
eleazar |
553 |
<div class="container-fluid">
|
|
|
554 |
<div class="row">
|
|
|
555 |
<div class="col-12">
|
|
|
556 |
<div class="card">
|
|
|
557 |
<div class="card-header">
|
|
|
558 |
<?php
|
| 1486 |
eleazar |
559 |
// $form = $this->form;
|
| 1631 |
eleazar |
560 |
$form->setAttributes([
|
|
|
561 |
'name' => 'form-filter',
|
|
|
562 |
'id' => 'form-filter',
|
| 1481 |
eleazar |
563 |
]);
|
| 1631 |
eleazar |
564 |
|
| 1481 |
eleazar |
565 |
$form->prepare();
|
|
|
566 |
echo $this->form()->openTag($form);
|
| 1631 |
eleazar |
567 |
?>
|
| 1481 |
eleazar |
568 |
<div class="row">
|
|
|
569 |
<div class="col-md-6 col-sm-12">
|
|
|
570 |
<div class="form-group">
|
|
|
571 |
<?php
|
|
|
572 |
$element = $form->get('form_uuid');
|
| 1631 |
eleazar |
573 |
|
| 1484 |
eleazar |
574 |
$element->setOptions(['label' => 'LABEL_VACANCIES']);
|
| 1631 |
eleazar |
575 |
|
| 1481 |
eleazar |
576 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
577 |
echo $this->formLabel($element);
|
|
|
578 |
echo $this->formSelect($element);
|
|
|
579 |
?>
|
| 1631 |
eleazar |
580 |
</div>
|
| 1481 |
eleazar |
581 |
</div>
|
|
|
582 |
|
|
|
583 |
</div>
|
| 1631 |
eleazar |
584 |
<?php echo $this->form()->closeTag($form); ?>
|
|
|
585 |
</div>
|
|
|
586 |
<div class="card-body">
|
|
|
587 |
<table id="gridTable" class="table table-hover">
|
|
|
588 |
<thead>
|
|
|
589 |
<tr>
|
|
|
590 |
<th>LABEL_FIRST_NAME</th>
|
|
|
591 |
<th>LABEL_LAST_NAME</th>
|
|
|
592 |
<th>LABEL_EMAIL</th>
|
|
|
593 |
<th>LABEL_ACTIONS</th>
|
|
|
594 |
</tr>
|
|
|
595 |
</thead>
|
|
|
596 |
<tbody>
|
|
|
597 |
</tbody>
|
|
|
598 |
</table>
|
|
|
599 |
</div>
|
|
|
600 |
<div class="card-footer clearfix">
|
|
|
601 |
<div style="float:right;">
|
|
|
602 |
<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i>
|
|
|
603 |
LABEL_REFRESH
|
|
|
604 |
</button>
|
|
|
605 |
<?php if ($allowAdd) : ?>
|
|
|
606 |
<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i>
|
|
|
607 |
LABEL_ADD
|
|
|
608 |
</button>
|
|
|
609 |
<?php endif; ?>
|
|
|
610 |
</div>
|
|
|
611 |
</div>
|
|
|
612 |
</div>
|
|
|
613 |
</div>
|
|
|
614 |
</div>
|
|
|
615 |
</div>
|
|
|
616 |
</section>
|
| 1616 |
eleazar |
617 |
|
|
|
618 |
<!-- The Add Modal -->
|
|
|
619 |
<div class="modal" tabindex="-1" role="dialog" id="add-candidate-box">
|
| 1631 |
eleazar |
620 |
<div class="modal-dialog" role="document">
|
|
|
621 |
<?php
|
| 2121 |
eleazar |
622 |
//$form = $this->formAdd;
|
| 1631 |
eleazar |
623 |
$form->setAttributes([
|
|
|
624 |
'method' => 'post',
|
|
|
625 |
'name' => 'form-add',
|
|
|
626 |
'action' => $routeAdd,
|
|
|
627 |
'email' => $routeEmail,
|
|
|
628 |
'id' => 'form-add'
|
|
|
629 |
]);
|
|
|
630 |
$form->prepare();
|
|
|
631 |
echo $this->form()->openTag($form);
|
|
|
632 |
|
| 1660 |
eleazar |
633 |
$fields = ['user_id'];
|
|
|
634 |
|
|
|
635 |
foreach($fields as $field)
|
|
|
636 |
{
|
|
|
637 |
$element = $form->get($field);
|
|
|
638 |
echo $this->formHidden($element);
|
|
|
639 |
}
|
|
|
640 |
|
| 1631 |
eleazar |
641 |
?>
|
|
|
642 |
<div class="modal-content">
|
|
|
643 |
<div class="modal-header">
|
|
|
644 |
<h3 class="modal-title">LABEL_NEW_CANDIDATE</h3>
|
|
|
645 |
</div>
|
|
|
646 |
<div class="modal-body">
|
| 3863 |
eleazar |
647 |
<div id="first-step" style="display: none;">
|
|
|
648 |
<div class="form-group">
|
|
|
649 |
<?php
|
|
|
650 |
$element = $form->get('email');
|
|
|
651 |
$element->setOptions(['label' => 'LABEL_EMAIL']);
|
|
|
652 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
653 |
echo $this->formLabel($element);
|
|
|
654 |
echo $this->formText($element);
|
|
|
655 |
?>
|
|
|
656 |
</div>
|
|
|
657 |
<button id="check-email" type="button" class="btn btn-primary">LABEL_CHECK_EMAIL</button>
|
|
|
658 |
<div class="form-group">
|
|
|
659 |
<?php
|
|
|
660 |
$element = $form->get('first_name');
|
|
|
661 |
$element->setOptions(['label' => 'LABEL_FIRST_NAME']);
|
|
|
662 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
663 |
echo $this->formLabel($element);
|
|
|
664 |
echo $this->formText($element);
|
|
|
665 |
?>
|
|
|
666 |
</div>
|
|
|
667 |
<div class="form-group">
|
|
|
668 |
<?php
|
|
|
669 |
$element = $form->get('last_name');
|
|
|
670 |
$element->setOptions(['label' => 'LABEL_LAST_NAME']);
|
|
|
671 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
672 |
echo $this->formLabel($element);
|
|
|
673 |
echo $this->formText($element);
|
|
|
674 |
?>
|
|
|
675 |
</div>
|
|
|
676 |
<div class="modal-footer">
|
| 3871 |
eleazar |
677 |
<button id="btn-next" type="button" class="btn btn-primary">LABEL_NEXT</button>
|
| 3863 |
eleazar |
678 |
</div>
|
| 1631 |
eleazar |
679 |
</div>
|
| 3863 |
eleazar |
680 |
<div id="second-step" style="display: none;">
|
| 3821 |
eleazar |
681 |
<div class="form-group">
|
|
|
682 |
<?php
|
|
|
683 |
$element = $form->get('coment');
|
|
|
684 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
685 |
$element->setOptions(['label' => 'LABEL_COMMENT']);
|
|
|
686 |
echo $this->formLabel($element);
|
|
|
687 |
echo $this->formTextArea($element);
|
|
|
688 |
?>
|
|
|
689 |
</div>
|
|
|
690 |
<div class="form-group">
|
|
|
691 |
<?php
|
|
|
692 |
$element = $form->get('evaluation');
|
|
|
693 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
694 |
$element->setOptions(['label' => 'LABEL_EVALUATION']);
|
|
|
695 |
echo $this->formLabel($element);
|
|
|
696 |
echo $this->formSelect($element);
|
|
|
697 |
?>
|
|
|
698 |
</div>
|
|
|
699 |
<div class="form-group">
|
|
|
700 |
<?php
|
|
|
701 |
$element = $form->get('file');
|
|
|
702 |
$element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
|
|
|
703 |
$element->setOptions(['label' => 'LABEL_CURRICULUM']);
|
|
|
704 |
echo $this->formLabel($element);
|
|
|
705 |
?>
|
|
|
706 |
<div class="file-loading">
|
|
|
707 |
<?php echo $this->formFile($element); ?>
|
|
|
708 |
</div>
|
| 1493 |
eleazar |
709 |
</div>
|
| 3821 |
eleazar |
710 |
<div class="form-group">
|
|
|
711 |
<?php
|
|
|
712 |
$element = $form->get('status');
|
|
|
713 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
714 |
$element->setOptions(['label' => 'LABEL_STATUS']);
|
|
|
715 |
echo $this->formLabel($element);
|
|
|
716 |
echo $this->formSelect($element);
|
|
|
717 |
?>
|
|
|
718 |
</div>
|
| 3863 |
eleazar |
719 |
<div class="modal-footer">
|
|
|
720 |
<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
|
|
|
721 |
<button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
|
|
|
722 |
</div>
|
| 1631 |
eleazar |
723 |
</div>
|
|
|
724 |
</div>
|
| 3863 |
eleazar |
725 |
|
| 1631 |
eleazar |
726 |
<?php echo $this->form()->closeTag($form); ?>
|
|
|
727 |
</div>
|
|
|
728 |
</div>
|
| 1616 |
eleazar |
729 |
</div>
|
|
|
730 |
|
|
|
731 |
<!-- The Edit Modal -->
|
|
|
732 |
<div class="modal" tabindex="-1" role="dialog" id="edit-candidate-box">
|
| 1631 |
eleazar |
733 |
<div class="modal-dialog" role="document">
|
|
|
734 |
<?php
|
|
|
735 |
$form->setAttributes([
|
|
|
736 |
'method' => 'post',
|
|
|
737 |
'name' => 'form-edit',
|
|
|
738 |
'id' => 'form-edit'
|
|
|
739 |
]);
|
|
|
740 |
$form->prepare();
|
|
|
741 |
echo $this->form()->openTag($form);
|
|
|
742 |
|
| 1660 |
eleazar |
743 |
$fields = ['user_id'];
|
|
|
744 |
|
|
|
745 |
foreach($fields as $field)
|
|
|
746 |
{
|
|
|
747 |
$element = $form->get($field);
|
|
|
748 |
echo $this->formHidden($element);
|
|
|
749 |
}
|
|
|
750 |
|
| 1631 |
eleazar |
751 |
?>
|
|
|
752 |
<div class="modal-content">
|
|
|
753 |
<div class="modal-header">
|
|
|
754 |
<h3 class="modal-title">LABEL_CANDIDATE</h3>
|
|
|
755 |
</div>
|
|
|
756 |
<div class="modal-body">
|
|
|
757 |
<div class="form-group">
|
|
|
758 |
<?php
|
|
|
759 |
$element = $form->get('first_name');
|
|
|
760 |
$element->setOptions(['label' => 'LABEL_FIRST_NAME']);
|
|
|
761 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
762 |
echo $this->formLabel($element);
|
|
|
763 |
echo $this->formText($element);
|
| 1616 |
eleazar |
764 |
?>
|
| 1631 |
eleazar |
765 |
</div>
|
|
|
766 |
<div class="form-group">
|
|
|
767 |
<?php
|
|
|
768 |
$element = $form->get('last_name');
|
|
|
769 |
$element->setOptions(['label' => 'LABEL_LAST_NAME']);
|
|
|
770 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
771 |
echo $this->formLabel($element);
|
|
|
772 |
echo $this->formText($element);
|
| 1616 |
eleazar |
773 |
?>
|
| 1631 |
eleazar |
774 |
</div>
|
|
|
775 |
<div class="form-group">
|
|
|
776 |
<?php
|
|
|
777 |
$element = $form->get('email');
|
|
|
778 |
$element->setOptions(['label' => 'LABEL_EMAIL']);
|
|
|
779 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
780 |
echo $this->formLabel($element);
|
|
|
781 |
echo $this->formText($element);
|
| 1616 |
eleazar |
782 |
?>
|
| 1631 |
eleazar |
783 |
</div>
|
|
|
784 |
<div class="form-group">
|
| 1649 |
eleazar |
785 |
<?php
|
| 1652 |
eleazar |
786 |
$element = $form->get('coment');
|
| 1649 |
eleazar |
787 |
$element->setAttributes(['class' => 'form-control']);
|
| 1657 |
eleazar |
788 |
$element->setOptions(['label' => 'LABEL_COMMENT']);
|
| 1649 |
eleazar |
789 |
echo $this->formLabel($element);
|
|
|
790 |
echo $this->formTextArea($element);
|
|
|
791 |
?>
|
|
|
792 |
</div>
|
|
|
793 |
<div class="form-group">
|
| 1631 |
eleazar |
794 |
<?php
|
| 1658 |
eleazar |
795 |
$element = $form->get('evaluation');
|
| 1649 |
eleazar |
796 |
$element->setAttributes(['class' => 'form-control']);
|
| 1658 |
eleazar |
797 |
$element->setOptions(['label' => 'LABEL_EVALUATION']);
|
| 1649 |
eleazar |
798 |
echo $this->formLabel($element);
|
|
|
799 |
echo $this->formSelect($element);
|
|
|
800 |
?>
|
|
|
801 |
</div>
|
| 8620 |
eleazar |
802 |
<div class="form-group">
|
| 1649 |
eleazar |
803 |
<?php
|
| 1616 |
eleazar |
804 |
$element = $form->get('file');
|
| 1631 |
eleazar |
805 |
$element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
|
| 1616 |
eleazar |
806 |
$element->setOptions(['label' => 'LABEL_CURRICULUM']);
|
|
|
807 |
echo $this->formLabel($element);
|
|
|
808 |
?>
|
|
|
809 |
<div class="file-loading">
|
| 1631 |
eleazar |
810 |
<?php echo $this->formFile($element); ?>
|
| 1616 |
eleazar |
811 |
</div>
|
| 8620 |
eleazar |
812 |
|
|
|
813 |
<div class="mt-2" id="current-file">
|
| 8666 |
eleazar |
814 |
<a href="" class="btn btn-primary" id="btn-cv" target="_blank">CV actual</a>
|
| 8620 |
eleazar |
815 |
</div>
|
| 1631 |
eleazar |
816 |
</div>
|
| 1619 |
eleazar |
817 |
|
| 1631 |
eleazar |
818 |
<div class="form-group">
|
|
|
819 |
<?php
|
|
|
820 |
$element = $form->get('status');
|
|
|
821 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
822 |
$element->setOptions(['label' => 'LABEL_STATUS']);
|
|
|
823 |
echo $this->formLabel($element);
|
|
|
824 |
echo $this->formSelect($element);
|
| 1619 |
eleazar |
825 |
?>
|
| 1631 |
eleazar |
826 |
</div>
|
|
|
827 |
</div>
|
|
|
828 |
<div class="modal-footer">
|
|
|
829 |
<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
|
|
|
830 |
<button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
|
|
|
831 |
</div>
|
|
|
832 |
<?php echo $this->form()->closeTag($form); ?>
|
|
|
833 |
</div>
|
|
|
834 |
</div>
|
| 1485 |
eleazar |
835 |
</div>
|