| Línea 18... |
Línea 18... |
| 18 |
$allowDelete = $acl->isAllowed($roleName, 'jobs-description/delete') ? 1 : 0;
|
18 |
$allowDelete = $acl->isAllowed($roleName, 'jobs-description/delete') ? 1 : 0;
|
| 19 |
$allowReport = $acl->isAllowed($roleName, 'jobs-description/report') ? 1 : 0;
|
19 |
$allowReport = $acl->isAllowed($roleName, 'jobs-description/report') ? 1 : 0;
|
| 20 |
$allowImport = $acl->isAllowed($roleName, 'jobs-description/import') ? 1 : 0;
|
20 |
$allowImport = $acl->isAllowed($roleName, 'jobs-description/import') ? 1 : 0;
|
| Línea 21... |
Línea 21... |
| 21 |
|
21 |
|
| 22 |
|
22 |
|
| Línea 23... |
Línea 23... |
| 23 |
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
|
23 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
|
| Línea 24... |
Línea 24... |
| 24 |
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
|
24 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
|
| 25 |
|
25 |
|
| 26 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
|
26 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap-maxlenght/bootstrap-maxlength.min.js'));
|
| Línea 27... |
Línea 27... |
| 27 |
|
27 |
|
| 28 |
|
28 |
|
| Línea 29... |
Línea 29... |
| 29 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
|
29 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
|
| 30 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
|
30 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
|
| 31 |
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
|
31 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
|
| 32 |
|
32 |
|
| - |
|
33 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.css'));
|
| - |
|
34 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.css'));
|
| - |
|
35 |
|
| - |
|
36 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net/jquery.dataTables.js'));
|
| Línea 33... |
Línea -... |
| 33 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
|
- |
|
| 34 |
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
|
- |
|
| Línea 35... |
Línea -... |
| 35 |
|
- |
|
| 36 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
|
- |
|
| Línea 37... |
Línea 37... |
| 37 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
|
37 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5/dataTables.bootstrap5.js'));
|
| 38 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
|
38 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/dataTables.responsive.min.js'));
|
| Línea 39... |
Línea 39... |
| 39 |
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
|
39 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/datatables.net-bs5-responsive/responsive.bootstrap5.min.js'));
|
| 40 |
|
40 |
|
| 41 |
|
41 |
|
| Línea 42... |
Línea 42... |
| 42 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
42 |
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
| Línea 43... |
Línea 43... |
| 43 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
43 |
$this->inlineScript()->appendFile($this->basePath('assets/vendors/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
| 44 |
|
- |
|
| - |
|
44 |
|
| Línea 45... |
Línea 45... |
| 45 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
|
45 |
|
| 46 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
|
46 |
|
| Línea 47... |
Línea 47... |
| 47 |
|
47 |
|
| 48 |
|
48 |
|
| Línea 542... |
Línea 542... |
| 542 |
|
542 |
|
| 543 |
$('body').on('click', 'i.btn-delete-job-description', function(e) {
|
543 |
$('body').on('click', 'i.btn-delete-job-description', function(e) {
|
| 544 |
e.preventDefault();
|
544 |
e.preventDefault();
|
| Línea 545... |
Línea 545... |
| 545 |
var action = $(this).data('link');
|
545 |
var action = $(this).data('link');
|
| 546 |
|
546 |
|
| 547 |
bootbox.confirm({
|
- |
|
| 548 |
message: 'LABEL_ARE_YOU_SURE',
|
547 |
swal.fire({
|
| 549 |
buttons: {
|
548 |
title: 'LABEL_ARE_YOU_SURE',
|
| 550 |
confirm: {
|
- |
|
| 551 |
label: 'LABEL_YES',
|
- |
|
| 552 |
className: 'btn-success'
|
549 |
icon: 'question',
|
| 553 |
},
|
550 |
cancelButtonText: 'LABEL_NO',
|
| 554 |
cancel: {
|
- |
|
| 555 |
label: 'LABEL_NO',
|
- |
|
| 556 |
className: 'btn-danger'
|
- |
|
| 557 |
}
|
551 |
showCancelButton: true,
|
| 558 |
},
|
552 |
confirmButtonText: 'LABEL_YES'
|
| - |
|
553 |
}).then((result) => {
|
| 559 |
callback: function (result) {
|
554 |
if (result.isConfirmed) {
|
| 560 |
if(result) {
|
555 |
|
| 561 |
NProgress.start();
|
556 |
NProgress.start();
|
| 562 |
$.ajax({
|
557 |
$.ajax({
|
| 563 |
'dataType': 'json',
|
558 |
'dataType': 'json',
|
| Línea 574... |
Línea 569... |
| 574 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
569 |
}).fail(function(jqXHR, textStatus, errorThrown) {
|
| 575 |
$.fn.showError(textStatus);
|
570 |
$.fn.showError(textStatus);
|
| 576 |
}).always(function() {
|
571 |
}).always(function() {
|
| 577 |
NProgress.done();
|
572 |
NProgress.done();
|
| 578 |
});
|
573 |
});
|
| 579 |
}
|
- |
|
| - |
|
574 |
|
| 580 |
}
|
575 |
}
|
| 581 |
});
|
576 |
});
|
| - |
|
577 |
|
| Línea 582... |
Línea 578... |
| 582 |
|
578 |
|
| Línea 583... |
Línea 579... |
| 583 |
|
579 |
|
| 584 |
|
580 |
|
| Línea 585... |
Línea 581... |
| 585 |
});
|
581 |
});
|
| - |
|
582 |
|
| 586 |
|
583 |
$('body').on('click', 'button.btn-delete-job-description-competency', function(e) {
|
| 587 |
$('body').on('click', 'button.btn-delete-job-description-competency', function(e) {
|
584 |
e.preventDefault();
|
| 588 |
e.preventDefault();
|
585 |
|
| 589 |
|
586 |
var uuid = $(this).data('competency');
|
| 590 |
var uuid = $(this).data('competency');
|
587 |
|
| 591 |
bootbox.confirm({
|
- |
|
| 592 |
title: 'LABEL_COMPETENCY_DELETE_TITLE',
|
588 |
swal.fire({
|
| 593 |
message: 'LABEL_COMPETENCY_DELETE_MESSAGE',
|
589 |
title: 'LABEL_COMPETENCY_DELETE_TITLE',
|
| 594 |
buttons: {
|
- |
|
| 595 |
cancel: {
|
- |
|
| 596 |
label: '<i class="fa fa-times"></i> LABEL_CANCEL'
|
- |
|
| 597 |
},
|
590 |
message: 'LABEL_COMPETENCY_DELETE_MESSAGE',
|
| 598 |
confirm: {
|
591 |
icon: 'question',
|
| - |
|
592 |
cancelButtonText: 'LABEL_NO',
|
| 599 |
label: '<i class="fa fa-check"></i> LABEL_ACCEPT'
|
593 |
showCancelButton: true,
|
| Línea 600... |
Línea 594... |
| 600 |
}
|
594 |
confirmButtonText: 'LABEL_YES'
|
| 601 |
},
|
595 |
}).then((result) => {
|
| 602 |
callback: function(result) {
|
- |
|
| 603 |
if (result) {
|
- |
|
| 604 |
competencies_selected = competencies_selected.filter((item) => item.uuid != uuid ? item : false);
|
596 |
if (result.isConfirmed) {
|
| 605 |
|
597 |
|
| - |
|
598 |
competencies_selected = competencies_selected.filter((item) => item.uuid != uuid ? item : false);
|
| - |
|
599 |
|
| 606 |
|
600 |
|
| Línea 607... |
Línea 601... |
| 607 |
$.fn.renderCompetencies();
|
601 |
$.fn.renderCompetencies();
|
| 608 |
$.fn.comboCompetencies();
|
602 |
$.fn.comboCompetencies();
|
| Línea 875... |
Línea 869... |
| 875 |
<label for="behavior-value">LABEL_LEVEL</label>
|
869 |
<label for="behavior-value">LABEL_LEVEL</label>
|
| 876 |
<input type="number" step="1" min="0" max="100" id="level" name="level">
|
870 |
<input type="number" step="1" min="0" max="100" id="level" name="level">
|
| 877 |
</div>
|
871 |
</div>
|
| 878 |
<div class="modal-footer">
|
872 |
<div class="modal-footer">
|
| 879 |
<button type="button" class="btn btn-primary btn-behavior-submit">LABEL_SAVE</button>
|
873 |
<button type="button" class="btn btn-primary btn-behavior-submit">LABEL_SAVE</button>
|
| 880 |
<button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
|
874 |
<button type="button" class="btn btn-light" data-dismiss="modal">LABEL_CLOSE</button>
|
| 881 |
</div>
|
875 |
</div>
|
| 882 |
</div>
|
876 |
</div>
|
| 883 |
</div>
|
877 |
</div>
|
| 884 |
</div>
|
878 |
</div>
|
| 885 |
</form>
|
879 |
</form>
|