| Línea 457... |
Línea 457... |
| 457 |
/**
|
457 |
/**
|
| 458 |
* Clicked save and continue new Form
|
458 |
* Clicked save and continue new Form
|
| 459 |
*/
|
459 |
*/
|
| 460 |
$('button.btn-form-save-continue').click(function(e) {
|
460 |
$('button.btn-form-save-continue').click(function(e) {
|
| 461 |
e.preventDefault();
|
461 |
e.preventDefault();
|
| 462 |
$('#interview #form-continue').val('1')
|
462 |
$('#form-interview #form-continue').val('1')
|
| 463 |
$('#form-interview').submit();
|
463 |
$('#form-interview').submit();
|
| 464 |
});
|
464 |
});
|
| 465 |
/**
|
465 |
/**
|
| 466 |
* Clicked save and close new/edit Form
|
466 |
* Clicked save and close new/edit Form
|
| 467 |
*/
|
467 |
*/
|
| 468 |
$('button.btn-form-save-close').click(function(e) {
|
468 |
$('button.btn-form-save-close').click(function(e) {
|
| 469 |
e.preventDefault();
|
469 |
e.preventDefault();
|
| 470 |
$('#interview #form-continue').val('0')
|
470 |
$('#form-interview #form-continue').val('0')
|
| 471 |
$("#content").show();
|
471 |
$("#content").show();
|
| 472 |
$("#main").hide();
|
472 |
$("#main").hide();
|
| 473 |
$('#form-interview').submit();
|
473 |
$('#form-interview').submit();
|
| 474 |
gridTable.api().ajax.reload(null, false);
|
474 |
gridTable.api().ajax.reload(null, false);
|
| 475 |
});
|
475 |
});
|
| Línea 557... |
Línea 557... |
| 557 |
</div>
|
557 |
</div>
|
| 558 |
</section>
|
558 |
</section>
|
| Línea 559... |
Línea 559... |
| 559 |
|
559 |
|
| 560 |
<section id="main" style="display: none;">
|
560 |
<section id="main" style="display: none;">
|
| - |
|
561 |
<div class="container-fluid">
|
| - |
|
562 |
<form action="#" name="form-main" id="form-main">
|
| - |
|
563 |
<input type="hidden" name="form-id" id="form-id" value="0" />
|
| 561 |
<div class="container-fluid">
|
564 |
<input type="hidden" name="form-continue" id="form-continue" value="0" />
|
| 562 |
<div class="row p-2">
|
565 |
<div class="row p-2">
|
| 563 |
<div class="col-12">
|
566 |
<div class="col-12">
|
| 564 |
<?php
|
567 |
<?php
|
| 565 |
$form->setAttributes([
|
568 |
$form->setAttributes([
|
| 566 |
'method' => 'post',
|
569 |
'method' => 'post',
|
| 567 |
'name' => 'form-interview',
|
570 |
'name' => 'form-interview',
|
| 568 |
'id' => 'form-interview',
|
571 |
'id' => 'form-interview',
|
| 569 |
'action' => $routeAdd
|
572 |
'action' => $routeAdd
|
| 570 |
]);
|
573 |
]);
|
| 571 |
$form->prepare();
|
574 |
$form->prepare();
|
| 572 |
echo $this->form()->openTag($form);
|
575 |
echo $this->form()->openTag($form);
|
| 573 |
?>
|
576 |
?>
|
| 574 |
<div class="card">
|
577 |
<div class="card">
|
| 575 |
<ul class="nav nav-tabs" id="custom-tabs" role="tablist">
|
578 |
<ul class="nav nav-tabs" id="custom-tabs" role="tablist">
|
| 576 |
<li class="nav-item" role="presentation">
|
579 |
<li class="nav-item" role="presentation">
|
| 577 |
<a class="nav-link active" id="custom-tabs-general-tab" data-toggle="tab" href="#custom-tabs-general" role="tab" aria-controls="custom-tabs-general" aria-selected="true">LABEL_GENERAL</a>
|
580 |
<a class="nav-link active" id="custom-tabs-general-tab" data-toggle="tab" href="#custom-tabs-general" role="tab" aria-controls="custom-tabs-general" aria-selected="true">LABEL_GENERAL</a>
|
| 578 |
</li>
|
581 |
</li>
|
| 579 |
<li class="nav-item" role="presentation">
|
582 |
<li class="nav-item" role="presentation">
|
| 580 |
<a class="nav-link" id="custom-tabs-compentencies-tab" data-toggle="tab" href="#custom-tabs-compentencies" role="tab" aria-controls="custom-tabs-compentencies" aria-selected="false">LABEL_COMPETENCIES</a>
|
583 |
<a class="nav-link" id="custom-tabs-compentencies-tab" data-toggle="tab" href="#custom-tabs-compentencies" role="tab" aria-controls="custom-tabs-compentencies" aria-selected="false">LABEL_COMPETENCIES</a>
|
| 581 |
</li>
|
584 |
</li>
|
| 582 |
<li class="nav-item" role="presentation">
|
585 |
<li class="nav-item" role="presentation">
|
| 583 |
<a class="nav-link" id="custom-tabs-evaluation-tab" data-toggle="tab" href="#custom-tabs-evaluation" role="tab" aria-controls="custom-tabs-evaluation" aria-selected="false">LABEL_CONCLUTION</a>
|
586 |
<a class="nav-link" id="custom-tabs-evaluation-tab" data-toggle="tab" href="#custom-tabs-evaluation" role="tab" aria-controls="custom-tabs-evaluation" aria-selected="false">LABEL_CONCLUTION</a>
|
| 584 |
</li>
|
587 |
</li>
|
| 585 |
</ul>
|
588 |
</ul>
|
| 586 |
|
589 |
|
| 587 |
<div class="tab-content">
|
590 |
<div class="tab-content">
|
| 588 |
<div class="tab-pane fade show active" id="custom-tabs-general" role="tabpanel" aria-labelledby="custom-tabs-general-tab">
|
591 |
<div class="tab-pane fade show active" id="custom-tabs-general" role="tabpanel" aria-labelledby="custom-tabs-general-tab">
|
| 589 |
<div class="row">
|
592 |
<div class="row">
|
| 590 |
<div class="col-md-6 col-sm-12">
|
593 |
<div class="col-md-6 col-sm-12">
|
| 591 |
<div class="form-group">
|
594 |
<div class="form-group">
|
| 592 |
<label for="vacancy_uuid">LABEL_VACANCIES</label>
|
595 |
<label for="vacancy_uuid">LABEL_VACANCIES</label>
|
| 593 |
<select id="vacancy_uuid" name="vacancy_uuid" class="form-control">
|
596 |
<select id="vacancy_uuid" name="vacancy_uuid" class="form-control">
|
| 594 |
<?php foreach($this->vacancies as $vacancy): ?>
|
597 |
<?php foreach($this->vacancies as $vacancy): ?>
|
| 595 |
<option value="<?= $vacancy->uuid ?>"><?= $vacancy->name ?></option>
|
598 |
<option value="<?= $vacancy->uuid ?>"><?= $vacancy->name ?></option>
|
| 596 |
<?php endforeach; ?>
|
599 |
<?php endforeach; ?>
|
| - |
|
600 |
</select>
|
| 597 |
</select>
|
601 |
</div>
|
| 598 |
</div>
|
- |
|
| 599 |
</div>
|
602 |
</div>
|
| 600 |
<div class="col-md-6 col-sm-12">
|
603 |
<div class="col-md-6 col-sm-12">
|
| 601 |
<div class="form-group">
|
604 |
<div class="form-group">
|
| 602 |
<label for="candidate_uuid">LABEL_CANDIDATES</label>
|
605 |
<label for="candidate_uuid">LABEL_CANDIDATES</label>
|
| 603 |
<select id="candidate_uuid" name="candidate_uuid" class="form-control">
|
606 |
<select id="candidate_uuid" name="candidate_uuid" class="form-control">
|
| - |
|
607 |
</select>
|
| 604 |
</select>
|
608 |
</div>
|
| 605 |
</div>
|
- |
|
| Línea 606... |
Línea -... |
| 606 |
</div>
|
- |
|
| 607 |
|
- |
|
| 608 |
</div>
|
- |
|
| 609 |
|
- |
|
| 610 |
<div class="row p-2">
|
- |
|
| 611 |
|
609 |
</div>
|
| 612 |
<div id="job-description"></div>
|
- |
|
| 613 |
</div>
|
- |
|
| - |
|
610 |
|
| 614 |
</div>
|
611 |
</div>
|
| - |
|
612 |
|
| 615 |
<div class="tab-pane fade" id="custom-tabs-compentencies" role="tabpanel" aria-labelledby="custom-tabs-compentencies-tab">
|
613 |
<div class="row p-2">
|
| 616 |
<div class="row p-2">
|
614 |
|
| 617 |
<div class="col-md-12 col-sm-12 col-xs-12" id="competencies-job" style="margin-top: 1px;">
|
615 |
<div id="job-description"></div>
|
| - |
|
616 |
</div>
|
| - |
|
617 |
</div>
|
| - |
|
618 |
<div class="tab-pane fade" id="custom-tabs-compentencies" role="tabpanel" aria-labelledby="custom-tabs-compentencies-tab">
|
| - |
|
619 |
<div class="row p-2">
|
| - |
|
620 |
<div class="col-md-12 col-sm-12 col-xs-12" id="competencies-job" style="margin-top: 1px;">
|
| 618 |
</div>
|
621 |
</div>
|
| 619 |
</div>
|
622 |
</div>
|
| 620 |
</div>
|
623 |
</div>
|
| 621 |
<div class="tab-pane fade" id="custom-tabs-evaluation" role="tabpanel" aria-labelledby="custom-tabs-evaluation-tab">
|
624 |
<div class="tab-pane fade" id="custom-tabs-evaluation" role="tabpanel" aria-labelledby="custom-tabs-evaluation-tab">
|
| 622 |
<div class="row p-2">
|
625 |
<div class="row p-2">
|
| 623 |
<div class="col-12">
|
626 |
<div class="col-12">
|
| 624 |
<div class="form-group">
|
627 |
<div class="form-group">
|
| 625 |
<?php
|
628 |
<?php
|
| 626 |
$element = $form->get('comment');
|
629 |
$element = $form->get('comment');
|
| 627 |
$element->setOptions(['label' => 'LABEL_COMMENT']);
|
630 |
$element->setOptions(['label' => 'LABEL_COMMENT']);
|
| 628 |
$element->setAttributes(['class' => 'form-control']);
|
631 |
$element->setAttributes(['class' => 'form-control']);
|
| 629 |
echo $this->formLabel($element);
|
632 |
echo $this->formLabel($element);
|
| 630 |
echo $this->formText($element);
|
633 |
echo $this->formText($element);
|
| 631 |
?>
|
634 |
?>
|
| 632 |
</div>
|
635 |
</div>
|
| 633 |
<div class="form-group">
|
636 |
<div class="form-group">
|
| 634 |
<?php
|
637 |
<?php
|
| 635 |
$element = $form->get('points');
|
638 |
$element = $form->get('points');
|
| 636 |
$element->setAttributes(['class' => 'form-control']);
|
639 |
$element->setAttributes(['class' => 'form-control']);
|
| 637 |
$element->setOptions(['label' => 'LABEL_EVALUATION']);
|
640 |
$element->setOptions(['label' => 'LABEL_EVALUATION']);
|
| 638 |
echo $this->formLabel($element);
|
641 |
echo $this->formLabel($element);
|
| 639 |
echo $this->formSelect($element);
|
642 |
echo $this->formSelect($element);
|
| 640 |
?>
|
643 |
?>
|
| 641 |
</div>
|
644 |
</div>
|
| 642 |
<div class="form-group">
|
645 |
<div class="form-group">
|
| 643 |
<?php
|
646 |
<?php
|
| 644 |
$element = $form->get('status');
|
647 |
$element = $form->get('status');
|
| 645 |
$element->setAttributes(['class' => 'form-control']);
|
648 |
$element->setAttributes(['class' => 'form-control']);
|
| 646 |
$element->setOptions(['label' => 'LABEL_STATUS']);
|
649 |
$element->setOptions(['label' => 'LABEL_STATUS']);
|
| 647 |
echo $this->formLabel($element);
|
650 |
echo $this->formLabel($element);
|
| - |
|
651 |
echo $this->formSelect($element);
|
| 648 |
echo $this->formSelect($element);
|
652 |
?>
|
| 649 |
?>
|
653 |
</div>
|
| 650 |
</div>
|
654 |
</div>
|
| 651 |
</div>
|
- |
|
| 652 |
</div>
|
655 |
</div>
|
| 653 |
</div>
|
656 |
</div>
|
| 654 |
<div class="card-footer clearfix">
|
657 |
<div class="card-footer clearfix">
|
| 655 |
<button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
|
658 |
<button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
|
| 656 |
<button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
|
659 |
<button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
|
| 657 |
<button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
|
660 |
<button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
|
| 658 |
</div>
|
661 |
</div>
|
| 659 |
</div>
|
662 |
</div>
|
| - |
|
663 |
</div>
|
| 660 |
</div>
|
664 |
<?php echo $this->form()->closeTag($form); ?>
|
| 661 |
<?php echo $this->form()->closeTag($form); ?>
|
665 |
</div>
|
| 662 |
</div>
|
666 |
</div>
|
| 663 |
</div>
|
667 |
</form>
|
| Línea 664... |
Línea 668... |
| 664 |
</div>
|
668 |
</div>
|
| 665 |
</section>
|
669 |
</section>
|