| 1709 |
eleazar |
1 |
<?php
|
|
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
|
|
3 |
$currentUser = $this->currentUserHelper();
|
|
|
4 |
$roleName = $currentUser->getUserTypeId();
|
|
|
5 |
|
| 2029 |
eleazar |
6 |
$routeIndex = $this->url('recruitment-and-selection/interview/form');
|
| 2128 |
eleazar |
7 |
$routeAdd = $this->url('recruitment-and-selection/interview/form/add', ['candidate_uuid' => 'UUID_PLACEHOLDER']);
|
| 1877 |
eleazar |
8 |
|
| 1827 |
eleazar |
9 |
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
|
| 1709 |
eleazar |
10 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
|
|
11 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
|
|
|
15 |
|
|
|
16 |
|
| 1885 |
eleazar |
17 |
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
|
| 1709 |
eleazar |
18 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
|
|
19 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
|
|
20 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
|
|
21 |
|
|
|
22 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
|
|
23 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
|
|
24 |
|
|
|
25 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
|
|
26 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
|
|
|
27 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
|
|
|
28 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
|
|
|
29 |
|
|
|
30 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
|
|
31 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
|
|
32 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
|
|
33 |
|
|
|
34 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
|
|
35 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
|
|
36 |
|
|
|
37 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
|
|
|
38 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
|
|
|
39 |
|
|
|
40 |
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
|
|
|
41 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
|
|
|
42 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
|
|
|
43 |
|
| 1887 |
eleazar |
44 |
|
| 2746 |
eleazar |
45 |
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
|
|
|
46 |
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/i18n/es.js'));
|
|
|
47 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
|
|
|
48 |
|
| 1887 |
eleazar |
49 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
|
| 1709 |
eleazar |
50 |
|
| 2052 |
eleazar |
51 |
// JsRender //
|
|
|
52 |
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
|
| 1709 |
eleazar |
53 |
|
| 2510 |
eleazar |
54 |
|
|
|
55 |
$points_0 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_0;
|
|
|
56 |
$points_1 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_1;
|
|
|
57 |
$points_2 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_2;
|
|
|
58 |
$points_3 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_3;
|
|
|
59 |
$points_4 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_4;
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
| 1709 |
eleazar |
63 |
$this->headStyle()->captureStart();
|
|
|
64 |
echo <<<CSS
|
|
|
65 |
|
|
|
66 |
CSS;
|
|
|
67 |
$this->headStyle()->captureEnd();
|
|
|
68 |
|
|
|
69 |
$this->inlineScript()->captureStart();
|
|
|
70 |
echo <<<JS
|
|
|
71 |
|
|
|
72 |
jQuery( document ).ready(function( $ ) {
|
| 1877 |
eleazar |
73 |
$.validator.setDefaults({
|
| 2015 |
eleazar |
74 |
debug: true,
|
|
|
75 |
highlight: function(element) {
|
|
|
76 |
$(element).addClass('is-invalid');
|
|
|
77 |
},
|
|
|
78 |
unhighlight: function(element) {
|
|
|
79 |
$(element).removeClass('is-invalid');
|
|
|
80 |
},
|
|
|
81 |
errorElement: 'span',
|
|
|
82 |
errorClass: 'error invalid-feedback',
|
|
|
83 |
errorPlacement: function(error, element) {
|
|
|
84 |
if(element.parent('.btn-file').length) {
|
|
|
85 |
error.insertAfter(element.parent().parent());
|
|
|
86 |
} else if(element.parent('.toggle').length) {
|
|
|
87 |
error.insertAfter(element.parent().parent());
|
|
|
88 |
} else {
|
|
|
89 |
error.insertAfter(element.parent());
|
| 1709 |
eleazar |
90 |
}
|
| 2015 |
eleazar |
91 |
}
|
|
|
92 |
});
|
| 1709 |
eleazar |
93 |
|
| 2015 |
eleazar |
94 |
$.fn.showFormErrorValidator = function(fieldname, errors) {
|
|
|
95 |
var field = $(fieldname);
|
|
|
96 |
if(field) {
|
|
|
97 |
$(field).addClass('is-invalid');
|
| 1709 |
eleazar |
98 |
|
| 2015 |
eleazar |
99 |
var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
|
|
|
100 |
|
|
|
101 |
if(element.parent('.btn-file').length) {
|
|
|
102 |
error.insertAfter(element.parent().parent());
|
|
|
103 |
} else if(element.parent('.toggle').length) {
|
|
|
104 |
error.insertAfter(element.parent().parent());
|
|
|
105 |
} else {
|
|
|
106 |
error.insertAfter(element.parent());
|
| 1709 |
eleazar |
107 |
}
|
| 2015 |
eleazar |
108 |
}
|
|
|
109 |
};
|
| 1827 |
eleazar |
110 |
|
| 2523 |
eleazar |
111 |
function getContent() {
|
| 2897 |
eleazar |
112 |
return $('[data-competency-behavior]').map(
|
| 2523 |
eleazar |
113 |
function (idx, td) {
|
| 2895 |
eleazar |
114 |
const competencyUuid = $(td).data('competency-uuid');
|
|
|
115 |
const behaviorUuid = $(td).data('behavior-uuid');
|
| 2523 |
eleazar |
116 |
const textarea = $(td).find('textarea');
|
|
|
117 |
const select = $(td).find('select');
|
| 2521 |
eleazar |
118 |
|
| 2523 |
eleazar |
119 |
return {
|
| 2895 |
eleazar |
120 |
competencyUuid: competencyUuid,
|
|
|
121 |
behaviorUuid : behaviorUuid,
|
| 2523 |
eleazar |
122 |
comment: textarea.val(),
|
|
|
123 |
evaluation: select.val(),
|
|
|
124 |
}
|
|
|
125 |
}
|
|
|
126 |
).get()
|
|
|
127 |
}
|
|
|
128 |
|
| 2537 |
eleazar |
129 |
var validator = $('#form-interview').validate({
|
| 1877 |
eleazar |
130 |
debug: true,
|
|
|
131 |
onclick: false,
|
|
|
132 |
onkeyup: false,
|
|
|
133 |
ignore: [],
|
| 2534 |
eleazar |
134 |
rules: {},
|
| 1877 |
eleazar |
135 |
submitHandler: function(form) {
|
|
|
136 |
$.ajax({
|
|
|
137 |
'dataType': 'json',
|
|
|
138 |
'accept': 'application/json',
|
|
|
139 |
'method': 'post',
|
| 2809 |
eleazar |
140 |
'url': $('#form-interview').attr('action'),
|
| 2523 |
eleazar |
141 |
'data': {
|
| 2571 |
eleazar |
142 |
content: JSON.stringify(getContent()),
|
| 2523 |
eleazar |
143 |
vacancy_uuid: $('#vacancy_uuid').val(),
|
|
|
144 |
candidate_uuid: $('#candidate_uuid').val(),
|
| 2686 |
eleazar |
145 |
points: $('#points').val(),
|
| 2744 |
eleazar |
146 |
comment: $('#comment').val(),
|
| 2747 |
eleazar |
147 |
type: $('#type').val(),
|
| 2749 |
eleazar |
148 |
status: $('#status').val(),
|
| 2523 |
eleazar |
149 |
}
|
| 1877 |
eleazar |
150 |
}).done(function(response) {
|
|
|
151 |
NProgress.start();
|
|
|
152 |
if (response['success']) {
|
|
|
153 |
$.fn.showSuccess(response['data']);
|
| 3071 |
eleazar |
154 |
$('#main').hide();
|
| 2536 |
eleazar |
155 |
$('#interview').hide();
|
| 2791 |
eleazar |
156 |
$('#vacancy_uuid').change();
|
| 1877 |
eleazar |
157 |
} else {
|
|
|
158 |
validator.resetForm();
|
|
|
159 |
if (jQuery.type(response['data']) == 'string') {
|
|
|
160 |
$.fn.showError(response['data']);
|
|
|
161 |
} else {
|
|
|
162 |
$.each(response['data'], function(fieldname, errors) {
|
| 2531 |
eleazar |
163 |
$.fn.showFormErrorValidator('#interview #' + fieldname, errors);
|
| 1877 |
eleazar |
164 |
});
|
|
|
165 |
}
|
|
|
166 |
}
|
|
|
167 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
|
|
168 |
$.fn.showError(textStatus);
|
|
|
169 |
}).always(function() {
|
|
|
170 |
NProgress.done();
|
|
|
171 |
});
|
|
|
172 |
return false;
|
|
|
173 |
},
|
|
|
174 |
invalidHandler: function(form, validator) {}
|
|
|
175 |
});
|
| 1709 |
eleazar |
176 |
|
| 2015 |
eleazar |
177 |
$('body').on('click', 'button.btn-add', function(e) {
|
| 2812 |
eleazar |
178 |
var url = $(this).data('url');
|
| 2015 |
eleazar |
179 |
e.preventDefault();
|
|
|
180 |
NProgress.start();
|
|
|
181 |
$.ajax({
|
|
|
182 |
'dataType': 'json',
|
|
|
183 |
'accept': 'application/json',
|
|
|
184 |
'method': 'get',
|
| 2812 |
eleazar |
185 |
'url': url,
|
| 2015 |
eleazar |
186 |
}).done(function(response) {
|
|
|
187 |
if (response['success']) {
|
| 2237 |
eleazar |
188 |
var data = response.data
|
| 2785 |
eleazar |
189 |
$("#interview #comment").val('');
|
|
|
190 |
$('#interview #status').val('');
|
|
|
191 |
$('#interview #type').val('')
|
| 2960 |
eleazar |
192 |
$("#interview #points").val('$points_0');
|
| 2785 |
eleazar |
193 |
|
| 2264 |
eleazar |
194 |
$("#competencies-job").html($("#competenciesTemplate").render(data))
|
| 2313 |
eleazar |
195 |
$("#interview").show()
|
| 2812 |
eleazar |
196 |
$("#form-interview").attr('action', url)
|
| 1877 |
eleazar |
197 |
} else {
|
| 2015 |
eleazar |
198 |
$.fn.showError(response['data']);
|
| 1877 |
eleazar |
199 |
}
|
| 2015 |
eleazar |
200 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
|
|
201 |
$.fn.showError(textStatus);
|
|
|
202 |
}).always(function() {
|
|
|
203 |
NProgress.done();
|
| 1877 |
eleazar |
204 |
});
|
| 2015 |
eleazar |
205 |
});
|
| 2785 |
eleazar |
206 |
|
|
|
207 |
$('body').on('click', 'button.btn-edit', function(e) {
|
| 2807 |
eleazar |
208 |
var url = $(this).data('url');
|
| 2785 |
eleazar |
209 |
e.preventDefault();
|
|
|
210 |
NProgress.start();
|
|
|
211 |
$.ajax({
|
|
|
212 |
'dataType': 'json',
|
|
|
213 |
'accept': 'application/json',
|
|
|
214 |
'method': 'get',
|
| 2807 |
eleazar |
215 |
'url': url,
|
| 2785 |
eleazar |
216 |
}).done(function(response) {
|
|
|
217 |
if (response['success']) {
|
|
|
218 |
var data = response.data
|
| 2798 |
eleazar |
219 |
$("#interview #comment").val(data['interview']['comment']);
|
|
|
220 |
$('#interview #status').val(data['interview']['status']);
|
|
|
221 |
$('#interview #type').val(data['interview']['type']);
|
|
|
222 |
$("#interview #points").val(data['interview']['points']);
|
| 2785 |
eleazar |
223 |
$("#competencies-job").html($("#competenciesTemplate").render(data))
|
| 2887 |
eleazar |
224 |
data.interview.content.forEach(obj => {
|
| 2896 |
eleazar |
225 |
$('#textarea-' + obj.competencyUuid + '-' + obj.behaviorUuid).val(obj.comment);
|
|
|
226 |
$('#select-' + obj.competencyUuid + '-' + obj.behaviorUuid).val(obj.evaluation);
|
| 2887 |
eleazar |
227 |
})
|
| 2808 |
eleazar |
228 |
$("#form-interview").attr('action', url)
|
| 2785 |
eleazar |
229 |
$("#interview").show()
|
|
|
230 |
} else {
|
|
|
231 |
$.fn.showError(response['data']);
|
|
|
232 |
}
|
|
|
233 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
|
|
234 |
$.fn.showError(textStatus);
|
|
|
235 |
}).always(function() {
|
|
|
236 |
NProgress.done();
|
|
|
237 |
});
|
|
|
238 |
});
|
| 2788 |
eleazar |
239 |
|
|
|
240 |
$('button.btn-delete').confirmation({
|
| 2887 |
eleazar |
241 |
rootSelector: 'button.btn-delete',
|
|
|
242 |
title: 'LABEL_ARE_YOU_SURE',
|
|
|
243 |
singleton: true,
|
|
|
244 |
btnOkLabel: 'LABEL_YES',
|
|
|
245 |
btnCancelLabel: 'LABEL_NO',
|
|
|
246 |
onConfirm: function (value) {
|
|
|
247 |
action = $(this).data('href');
|
|
|
248 |
NProgress.start();
|
|
|
249 |
$.ajax({
|
|
|
250 |
'dataType': 'json',
|
|
|
251 |
'accept': 'application/json',
|
|
|
252 |
'method': 'post',
|
|
|
253 |
'url': $(this).data('url'),
|
|
|
254 |
}).done(function (response) {
|
|
|
255 |
if (response['success']) {
|
|
|
256 |
$.fn.showSuccess(response['data']);
|
|
|
257 |
$('#vacancy_uuid').change();
|
|
|
258 |
} else {
|
|
|
259 |
$.fn.showError(response['data']);
|
|
|
260 |
}
|
|
|
261 |
}).fail(function (jqXHR, textStatus, errorThrown) {
|
|
|
262 |
$.fn.showError(textStatus);
|
|
|
263 |
}).always(function () {
|
|
|
264 |
NProgress.done();
|
| 2788 |
eleazar |
265 |
});
|
| 2887 |
eleazar |
266 |
},
|
|
|
267 |
});
|
| 2015 |
eleazar |
268 |
|
|
|
269 |
$('body').on('click', 'button.btn-cancel', function(e) {
|
|
|
270 |
e.preventDefault();
|
| 2521 |
eleazar |
271 |
$('#main').show();
|
| 2015 |
eleazar |
272 |
$('#row-form').hide();
|
|
|
273 |
$('#div-listing').show();
|
|
|
274 |
});
|
|
|
275 |
|
|
|
276 |
$('#form-filter #vacancy_uuid').change(function(e) {
|
|
|
277 |
e.preventDefault();
|
| 2577 |
eleazar |
278 |
$('#form-filter #candidate_uuid').empty();
|
| 2015 |
eleazar |
279 |
})
|
| 2118 |
eleazar |
280 |
|
| 2577 |
eleazar |
281 |
$('#form-filter #candidate_uuid').change(function(e) {
|
| 2015 |
eleazar |
282 |
e.preventDefault();
|
|
|
283 |
})
|
| 2525 |
eleazar |
284 |
/**
|
|
|
285 |
* Clicked cancel new/edit Form
|
|
|
286 |
*/
|
|
|
287 |
$('button.btn-edit-cancel').click(function(e) {
|
|
|
288 |
e.preventDefault();
|
| 2526 |
eleazar |
289 |
$('#interview').hide();
|
| 2525 |
eleazar |
290 |
});
|
|
|
291 |
/**
|
|
|
292 |
* Clicked save and continue new Form
|
|
|
293 |
*/
|
|
|
294 |
$('button.btn-form-save-continue').click(function(e) {
|
|
|
295 |
e.preventDefault();
|
|
|
296 |
$('#interview #form-continue').val('1')
|
| 2540 |
eleazar |
297 |
$('#form-interview').submit();
|
| 2525 |
eleazar |
298 |
});
|
|
|
299 |
/**
|
|
|
300 |
* Clicked save and close new/edit Form
|
|
|
301 |
*/
|
|
|
302 |
$('button.btn-form-save-close').click(function(e) {
|
|
|
303 |
e.preventDefault();
|
|
|
304 |
$('#interview #form-continue').val('0')
|
| 2540 |
eleazar |
305 |
$('#form-interview').submit();
|
| 2525 |
eleazar |
306 |
});
|
| 2029 |
eleazar |
307 |
|
|
|
308 |
$('#vacancy_uuid').on('change', function () {
|
| 2042 |
eleazar |
309 |
$('#candidate_uuid').html('');
|
|
|
310 |
|
| 2029 |
eleazar |
311 |
$.ajax({
|
|
|
312 |
'dataType': 'json',
|
|
|
313 |
'accept': 'application/json',
|
|
|
314 |
'method': 'get',
|
| 2031 |
eleazar |
315 |
'url': "$routeIndex" + "?vacancy_uuid=" + $('#vacancy_uuid').val(),
|
| 2038 |
eleazar |
316 |
}).done(function (response) {
|
|
|
317 |
var data = response.data
|
|
|
318 |
|
| 2036 |
eleazar |
319 |
data.candidates.forEach(function (candidate) {
|
| 2761 |
eleazar |
320 |
var option = $('<option />')
|
|
|
321 |
.val(candidate.uuid)
|
| 2777 |
eleazar |
322 |
.text(candidate.first_name)
|
|
|
323 |
.data('addUrl', candidate.add_url)
|
|
|
324 |
.data('editUrl', candidate.edit_url)
|
|
|
325 |
.data('deleteUrl', candidate.delete_url)
|
| 2879 |
eleazar |
326 |
.data('reportUrl', candidate.report_url)
|
| 2041 |
eleazar |
327 |
|
|
|
328 |
$('#candidate_uuid').append(option);
|
| 2036 |
eleazar |
329 |
});
|
| 2052 |
eleazar |
330 |
|
| 2785 |
eleazar |
331 |
$('#candidate_uuid').change();
|
|
|
332 |
|
| 2244 |
eleazar |
333 |
$('#job-description').html($('#job-description-template').render(response.data));
|
| 2029 |
eleazar |
334 |
})
|
|
|
335 |
});
|
| 2032 |
eleazar |
336 |
|
|
|
337 |
$('#vacancy_uuid').change();
|
| 2785 |
eleazar |
338 |
|
|
|
339 |
$('#candidate_uuid').on('change', function () {
|
|
|
340 |
const uuid = $('#candidate_uuid').val();
|
|
|
341 |
const data = $('#candidate_uuid option[value="' + uuid + '"]').data()
|
|
|
342 |
|
|
|
343 |
$('#add-button').data('url', data.addUrl)
|
|
|
344 |
$("#edit-button").data('url', data.editUrl)
|
|
|
345 |
$("#delete-button").data('url', data.deleteUrl)
|
| 2890 |
eleazar |
346 |
$("#report-button").attr('href', data.reportUrl)
|
| 2785 |
eleazar |
347 |
if (data.addUrl) {
|
|
|
348 |
$('#add-button').show();
|
| 2879 |
eleazar |
349 |
$('#report-button').show();
|
| 2785 |
eleazar |
350 |
$('#edit-button').hide();
|
|
|
351 |
$('#delete-button').hide();
|
|
|
352 |
} else {
|
|
|
353 |
$('#add-button').hide();
|
|
|
354 |
$('#edit-button').show();
|
|
|
355 |
$('#delete-button').show();
|
| 2879 |
eleazar |
356 |
$('#report-button').show();
|
| 2785 |
eleazar |
357 |
}
|
|
|
358 |
|
|
|
359 |
});
|
| 1709 |
eleazar |
360 |
});
|
|
|
361 |
JS;
|
|
|
362 |
$this->inlineScript()->captureEnd();
|
|
|
363 |
?>
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
<!-- Content Header (Page header) -->
|
| 2521 |
eleazar |
367 |
<section class="main-header">
|
| 1709 |
eleazar |
368 |
<div class="container-fluid">
|
|
|
369 |
<div class="row mb-2">
|
|
|
370 |
<div class="col-sm-12">
|
|
|
371 |
<h1>LABEL_INTERVIEW</h1>
|
|
|
372 |
</div>
|
|
|
373 |
</div>
|
|
|
374 |
</div><!-- /.container-fluid -->
|
|
|
375 |
</section>
|
|
|
376 |
|
| 3062 |
eleazar |
377 |
<section class="content">
|
|
|
378 |
<div class="container-fluid">
|
|
|
379 |
<div class="row">
|
|
|
380 |
<div class="col-12">
|
|
|
381 |
<div class="card">
|
|
|
382 |
<div class="card-header">
|
| 3064 |
eleazar |
383 |
|
| 3062 |
eleazar |
384 |
<div class="row">
|
|
|
385 |
<div class="col-md-6 col-sm-12">
|
|
|
386 |
<div class="form-group">
|
| 3064 |
eleazar |
387 |
<label for="vacancy_uuid">LABEL_VACANCY</label>
|
|
|
388 |
<select id="vacancy_uuid" name="vacancy_uuid" class="form-control">
|
|
|
389 |
<?php foreach($this->vacancies as $vacancy): ?>
|
|
|
390 |
<option value="<?= $vacancy->uuid ?>"><?= $vacancy->name ?></option>
|
|
|
391 |
<?php endforeach; ?>
|
|
|
392 |
</select>
|
| 3062 |
eleazar |
393 |
</div>
|
|
|
394 |
</div>
|
|
|
395 |
|
|
|
396 |
</div>
|
|
|
397 |
<?php echo $this->form()->closeTag($form); ?>
|
|
|
398 |
</div>
|
|
|
399 |
<div class="card-body">
|
|
|
400 |
<table id="gridTable" class="table table-hover">
|
|
|
401 |
<thead>
|
|
|
402 |
<tr>
|
|
|
403 |
<th>LABEL_FIRST_NAME</th>
|
|
|
404 |
<th>LABEL_LAST_NAME</th>
|
|
|
405 |
<th>LABEL_EMAIL</th>
|
|
|
406 |
<th>LABEL_ACTIONS</th>
|
|
|
407 |
</tr>
|
|
|
408 |
</thead>
|
|
|
409 |
<tbody>
|
|
|
410 |
</tbody>
|
|
|
411 |
</table>
|
|
|
412 |
</div>
|
|
|
413 |
<div class="card-footer clearfix">
|
|
|
414 |
<div style="float:right;">
|
|
|
415 |
<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i>
|
|
|
416 |
LABEL_REFRESH
|
|
|
417 |
</button>
|
|
|
418 |
<?php if ($allowAdd) : ?>
|
|
|
419 |
<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i>
|
|
|
420 |
LABEL_ADD
|
|
|
421 |
</button>
|
|
|
422 |
<?php endif; ?>
|
|
|
423 |
</div>
|
|
|
424 |
</div>
|
|
|
425 |
</div>
|
|
|
426 |
</div>
|
|
|
427 |
</div>
|
|
|
428 |
</div>
|
|
|
429 |
</section>
|
|
|
430 |
|
| 2521 |
eleazar |
431 |
<section class="main">
|
| 1709 |
eleazar |
432 |
<div class="container-fluid">
|
|
|
433 |
<div class="row">
|
|
|
434 |
<div class="col-12">
|
| 2537 |
eleazar |
435 |
|
|
|
436 |
<div class="card">
|
|
|
437 |
<div class="card-header">
|
|
|
438 |
<div class="row">
|
|
|
439 |
<div class="col-md-6 col-sm-12">
|
|
|
440 |
<div class="form-group">
|
|
|
441 |
<label for="vacancy_uuid">LABEL_VACANCY</label>
|
|
|
442 |
<select id="vacancy_uuid" name="vacancy_uuid" class="form-control">
|
|
|
443 |
<?php foreach($this->vacancies as $vacancy): ?>
|
|
|
444 |
<option value="<?= $vacancy->uuid ?>"><?= $vacancy->name ?></option>
|
|
|
445 |
<?php endforeach; ?>
|
|
|
446 |
</select>
|
|
|
447 |
</div>
|
| 1709 |
eleazar |
448 |
</div>
|
| 2537 |
eleazar |
449 |
<div class="col-md-6 col-sm-12">
|
|
|
450 |
<div class="form-group">
|
|
|
451 |
<label for="candidate_uuid">LABEL_CANDIDATES</label>
|
|
|
452 |
<select id="candidate_uuid" name="candidate_uuid" class="form-control">
|
|
|
453 |
</select>
|
|
|
454 |
</div>
|
| 1709 |
eleazar |
455 |
</div>
|
| 2537 |
eleazar |
456 |
<div
|
|
|
457 |
class="col-md-12 col-sm-12"
|
|
|
458 |
>
|
|
|
459 |
</div>
|
| 1709 |
eleazar |
460 |
</div>
|
| 2537 |
eleazar |
461 |
</div>
|
|
|
462 |
<div class="card-body">
|
|
|
463 |
<div id="job-description"></div>
|
|
|
464 |
</div>
|
|
|
465 |
<div class="card-footer clearfix">
|
|
|
466 |
<div style="float:right;">
|
| 2785 |
eleazar |
467 |
<button id="add-button" type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
|
| 2987 |
eleazar |
468 |
<a id="report-button" target="_blank" class="btn btn-primary btn-report"><i class="fa fa-file"></i> LABEL_VIEW_REPORT </a>
|
| 2864 |
eleazar |
469 |
<button id="edit-button" type="button" class="btn btn-primary btn-edit"><i class="fa fa-edit"></i> LABEL_EDIT </button>
|
|
|
470 |
<button id="delete-button" type="button" class="btn btn-primary btn-delete"><i class="fa fa-ban"></i> LABEL_DELETE </button>
|
| 2537 |
eleazar |
471 |
</div>
|
| 2015 |
eleazar |
472 |
</div>
|
| 2537 |
eleazar |
473 |
</div>
|
| 1876 |
eleazar |
474 |
</div>
|
| 2015 |
eleazar |
475 |
</div>
|
|
|
476 |
</div>
|
|
|
477 |
</section>
|
| 2052 |
eleazar |
478 |
|
|
|
479 |
<script id="job-description-template" type="text/x-jsrender">
|
|
|
480 |
<div class="card">
|
|
|
481 |
<div class="card-body">
|
|
|
482 |
<h5 class="card-title">{{:job_description.name}}</h5>
|
|
|
483 |
<p class="card-text">{{:vacancy.description}}</p>
|
| 2214 |
eleazar |
484 |
<p class="card-text">{{:job_description.objectives}}</p>
|
|
|
485 |
<p class="card-text">{{:job_description.functions}}</p>
|
| 2052 |
eleazar |
486 |
</div>
|
|
|
487 |
</div>
|
| 2061 |
eleazar |
488 |
</script>
|
|
|
489 |
|
| 2314 |
eleazar |
490 |
<section id="interview" style="display: none;">
|
| 2215 |
eleazar |
491 |
<div class="container-fluid">
|
|
|
492 |
<div class="row">
|
|
|
493 |
<div class="col-12">
|
| 2537 |
eleazar |
494 |
<form action="#" name="form-interview" id="form-interview">
|
|
|
495 |
<input type="hidden" name="form-continue" id="form-continue" value="0" />
|
| 2689 |
eleazar |
496 |
<div class="card">
|
|
|
497 |
<?php
|
|
|
498 |
$form->setAttributes([
|
|
|
499 |
'method' => 'post',
|
|
|
500 |
'name' => 'form-add',
|
|
|
501 |
'id' => 'form-add'
|
|
|
502 |
]);
|
|
|
503 |
$form->prepare();
|
|
|
504 |
echo $this->form()->openTag($form);
|
|
|
505 |
?>
|
| 2537 |
eleazar |
506 |
<div class="card-header">
|
|
|
507 |
<label>interview</label>
|
|
|
508 |
</div>
|
|
|
509 |
<div class="card-body">
|
|
|
510 |
<div id="competencies-job"></div>
|
| 2683 |
eleazar |
511 |
<div class="form-group">
|
|
|
512 |
<?php
|
|
|
513 |
$element = $form->get('comment');
|
|
|
514 |
$element->setOptions(['label' => 'LABEL_COMMENT']);
|
|
|
515 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
516 |
echo $this->formLabel($element);
|
|
|
517 |
echo $this->formText($element);
|
|
|
518 |
?>
|
|
|
519 |
</div>
|
|
|
520 |
<div class="form-group">
|
|
|
521 |
<?php
|
|
|
522 |
$element = $form->get('points');
|
|
|
523 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
524 |
$element->setOptions(['label' => 'LABEL_EVALUATION']);
|
|
|
525 |
echo $this->formLabel($element);
|
|
|
526 |
echo $this->formSelect($element);
|
|
|
527 |
?>
|
|
|
528 |
</div>
|
| 2744 |
eleazar |
529 |
<div class="form-group">
|
|
|
530 |
<?php
|
|
|
531 |
$element = $form->get('status');
|
|
|
532 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
533 |
$element->setOptions(['label' => 'LABEL_STATUS']);
|
|
|
534 |
echo $this->formLabel($element);
|
|
|
535 |
echo $this->formSelect($element);
|
|
|
536 |
?>
|
|
|
537 |
</div>
|
|
|
538 |
<div class="form-group">
|
|
|
539 |
<?php
|
| 2747 |
eleazar |
540 |
$element = $form->get('type');
|
| 2744 |
eleazar |
541 |
$element->setAttributes(['class' => 'form-control']);
|
|
|
542 |
$element->setOptions(['label' => 'LABEL_INTERVIEWED_BY']);
|
|
|
543 |
echo $this->formLabel($element);
|
|
|
544 |
echo $this->formSelect($element);
|
|
|
545 |
?>
|
|
|
546 |
</div>
|
| 2537 |
eleazar |
547 |
</div>
|
|
|
548 |
</div>
|
|
|
549 |
<div class="card-footer clearfix">
|
|
|
550 |
<button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
|
|
|
551 |
<button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
|
|
|
552 |
<button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
|
| 2515 |
eleazar |
553 |
</div>
|
| 2280 |
eleazar |
554 |
</div>
|
| 2537 |
eleazar |
555 |
</form>
|
| 2215 |
eleazar |
556 |
</div>
|
|
|
557 |
</div>
|
|
|
558 |
</div>
|
|
|
559 |
</section>
|
|
|
560 |
|
| 2264 |
eleazar |
561 |
<script id="competenciesTemplate" type="text/x-jsrender">
|
| 2508 |
eleazar |
562 |
<table class="table table-bordered" id="panel-{{:slug_section}}>
|
| 2293 |
eleazar |
563 |
<thead>
|
|
|
564 |
<tr>
|
| 2306 |
eleazar |
565 |
<th style="width: 50%;">LABEL_ELEMENT</th>
|
| 2293 |
eleazar |
566 |
<th style="width: 50%;">LABEL_TITLE</th>
|
|
|
567 |
</tr>
|
|
|
568 |
</thead>
|
| 2300 |
eleazar |
569 |
<tbody>
|
|
|
570 |
{{for job_description.competencies}}
|
|
|
571 |
<tr>
|
|
|
572 |
<td class="text-left">LABEL_COMPETENCY</td>
|
| 2302 |
eleazar |
573 |
<td class="text-left">{{:competency_name}}</td>
|
| 2300 |
eleazar |
574 |
</tr>
|
| 2302 |
eleazar |
575 |
|
|
|
576 |
{{for behaviors}}
|
| 2308 |
eleazar |
577 |
<tr>
|
| 2302 |
eleazar |
578 |
<td class="text-left">--LABEL_CONDUCT</td>
|
|
|
579 |
<td class="text-left">
|
| 2303 |
eleazar |
580 |
{{:description}}
|
| 2849 |
eleazar |
581 |
</td>
|
| 2507 |
eleazar |
582 |
</tr>
|
|
|
583 |
<tr>
|
| 2897 |
eleazar |
584 |
<td colspan="2" data-competency-behavior data-competency-uuid="{{:competency_uuid}}" data-behavior-uuid="{{:uuid}}">
|
| 2895 |
eleazar |
585 |
<label for="textarea-{{:competency_uuid}}-{{:uuid}}">LABEL_COMMENT</label>
|
| 2519 |
eleazar |
586 |
|
|
|
587 |
<textarea
|
| 2851 |
eleazar |
588 |
id="textarea-{{:competency_uuid}}-{{:uuid}}"
|
| 2519 |
eleazar |
589 |
class="form-control"
|
|
|
590 |
></textarea>
|
|
|
591 |
|
| 2888 |
eleazar |
592 |
<label for="select-{{:competency_uuid}}-{{:uuid}}">LABEL_EVALUATION</label>
|
| 2519 |
eleazar |
593 |
|
| 2889 |
eleazar |
594 |
<select class="form-control" id="select-{{:competency_uuid}}-{{:uuid}}">
|
| 2519 |
eleazar |
595 |
<option value="<?= $points_0 ?>"><?= $points_0 ?></option>
|
|
|
596 |
<option value="<?= $points_1 ?>"><?= $points_1 ?></option>
|
|
|
597 |
<option value="<?= $points_2 ?>"><?= $points_2 ?></option>
|
|
|
598 |
<option value="<?= $points_3 ?>"><?= $points_3 ?></option>
|
|
|
599 |
<option value="<?= $points_4 ?>"><?= $points_4 ?></option>
|
|
|
600 |
</select>
|
|
|
601 |
</td>
|
| 2506 |
eleazar |
602 |
</tr>
|
|
|
603 |
{{/for}}
|
|
|
604 |
|
| 2300 |
eleazar |
605 |
{{/for}}
|
|
|
606 |
</tbody>
|
| 2293 |
eleazar |
607 |
</table>
|
| 2241 |
eleazar |
608 |
</script>
|