Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 3455 | Rev 3460 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3455 Rev 3459
Línea 442... Línea 442...
442
			</div>
442
			</div>
443
		</div>
443
		</div>
444
	</div><!-- /.container-fluid -->
444
	</div><!-- /.container-fluid -->
445
</section>
445
</section>
Línea -... Línea 446...
-
 
446
 
446
 
447
 
447
<section class="main">
448
<section id="main" style="display: none;">
448
	<div class="container-fluid">
449
	<div class="container-fluid">
449
    	<div class="row">
450
    	<div class="row p-2">
-
 
451
        	<div class="col-12">
-
 
452
                <?php
-
 
453
                    $form->setAttributes([
-
 
454
                        'method' => 'post',
-
 
455
                        'name' => 'form-interview',
-
 
456
                        'id' => 'form-interview'
-
 
457
                    ]);
-
 
458
                    $form->prepare();
-
 
459
                    echo $this->form()->openTag($form);
-
 
460
                ?>
-
 
461
			    	<div class="card">
-
 
462
                        <ul class="nav nav-tabs" id="custom-tabs" role="tablist">
-
 
463
                            <li class="nav-item" role="presentation">
-
 
464
                                <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>
-
 
465
                            </li>
-
 
466
                            <li class="nav-item" role="presentation">
-
 
467
                                <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>
-
 
468
                            </li>
-
 
469
                            <li class="nav-item" role="presentation">
-
 
470
                                <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>
-
 
471
                            </li>
450
        	<div class="col-12">
472
                        </ul>
451
               
473
 
452
				<div class="card">        
474
			    		<div class="tab-content">
453
					<div class="card-header">		
475
                            <div class="tab-pane fade show active" id="custom-tabs-general" role="tabpanel" aria-labelledby="custom-tabs-general-tab">
454
                        <div class="row">
476
                            <div class="row">
455
                            <div class="col-md-6 col-sm-12">
477
                                <div class="col-md-6 col-sm-12">
456
                                <div class="form-group">
478
                                    <div class="form-group">
457
                                    <label for="vacancy_uuid">LABEL_VACANCY</label>
479
                                    <label for="vacancy_uuid">LABEL_VACANCY</label>
458
                                    <select id="vacancy_uuid" name="vacancy_uuid" class="form-control">
480
                                        <select id="vacancy_uuid" name="vacancy_uuid" class="form-control">
459
                                        <?php foreach($this->vacancies as $vacancy): ?>
481
                                            <?php foreach($this->vacancies as $vacancy): ?>
460
                                            <option value="<?= $vacancy->uuid ?>"><?= $vacancy->name ?></option>
482
                                                <option value="<?= $vacancy->uuid ?>"><?= $vacancy->name ?></option>
461
                                        <?php endforeach; ?>
483
                                            <?php endforeach; ?>
-
 
484
                                        </select>
462
                                    </select>
485
                                    </div>
-
 
486
                                </div>
463
                                </div>	
487
 
-
 
488
                            </div>
-
 
489
 
464
                            </div>
490
                            <div class="row p-2">
465
                            <div class="col-md-6 col-sm-12">
491
                                    <div class="col-md-6 col-sm-12">
466
                                <div class="form-group">
492
                                        <div class="form-group">
467
                                    <label for="candidate_uuid">LABEL_CANDIDATES</label>
493
                                            <label for="candidate_uuid">LABEL_CANDIDATES</label>
-
 
494
                                            <select id="candidate_uuid" name="candidate_uuid" class="form-control">
-
 
495
                                            </select>
468
                                    <select id="candidate_uuid" name="candidate_uuid" class="form-control">
496
                                        </div>
-
 
497
                                    </div>
469
                                    </select>
498
                                    <div id="job-description"></div>
470
                                </div>				
499
                                </div>
-
 
500
                            </div>
-
 
501
                            <div class="tab-pane fade" id="custom-tabs-compentencies" role="tabpanel" aria-labelledby="custom-tabs-compentencies-tab">
-
 
502
                                <div class="row p-2">
-
 
503
                                   <div class="col-md-12 col-sm-12 col-xs-12" id="competencies-job" style="margin-top: 1px;">
-
 
504
                                   </div>
471
                            </div>
505
                                </div>
-
 
506
                            </div>
-
 
507
                            <div class="tab-pane fade" id="custom-tabs-evaluation" role="tabpanel" aria-labelledby="custom-tabs-evaluation-tab">
472
                            <div
508
                                <div class="row p-2">
-
 
509
                                    <div class="col-12">
-
 
510
                                        <div class="form-group">
-
 
511
                                            <?php
-
 
512
                                            $element = $form->get('comment');
-
 
513
                                            $element->setOptions(['label' => 'LABEL_COMMENT']);
-
 
514
                                            $element->setAttributes(['class' => 'form-control']);
-
 
515
                                            echo $this->formLabel($element);
-
 
516
                                            echo $this->formText($element);
-
 
517
                                            ?>
-
 
518
                                        </div>
-
 
519
                                        <div class="form-group">
-
 
520
                                            <?php
-
 
521
                                            $element = $form->get('points');
-
 
522
                                            $element->setAttributes(['class' => 'form-control']);
-
 
523
                                            $element->setOptions(['label' => 'LABEL_EVALUATION']);
-
 
524
                                            echo $this->formLabel($element);
-
 
525
                                            echo $this->formSelect($element);
-
 
526
                                            ?>
-
 
527
                                        </div>
-
 
528
                                        <div class="form-group">
-
 
529
                                            <?php
-
 
530
                                            $element = $form->get('status');
-
 
531
                                            $element->setAttributes(['class' => 'form-control']);
-
 
532
                                            $element->setOptions(['label' => 'LABEL_STATUS']);
-
 
533
                                            echo $this->formLabel($element);
-
 
534
                                            echo $this->formSelect($element);
-
 
535
                                            ?>
-
 
536
                                        </div>
-
 
537
                                        <div class="form-group">
-
 
538
                                            <?php
-
 
539
                                            $element = $form->get('type');
-
 
540
                                            $element->setAttributes(['class' => 'form-control']);
-
 
541
                                            $element->setOptions(['label' => 'LABEL_INTERVIEWED_BY']);
-
 
542
                                            echo $this->formLabel($element);
-
 
543
                                            echo $this->formSelect($element);
-
 
544
                                            ?>
-
 
545
                                        </div>
-
 
546
                                    </div>
473
                                class="col-md-12 col-sm-12"
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>
474
                            >
552
                                <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
475
                            </div>
553
                            </div>
476
                        </div>
-
 
477
					</div>            
-
 
478
					<div class="card-body">
-
 
479
                        <div id="job-description"></div>
-
 
480
                   	</div>
-
 
481
                    <div class="card-footer clearfix">
-
 
482
                        <div style="float:right;">
-
 
483
                            <button id="add-button" type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
484
                            <a id="report-button" target="_blank" class="btn btn-primary btn-report"><i class="fa fa-file"></i> LABEL_REPORT </a>
-
 
485
                            <button id="edit-button" type="button" class="btn btn-primary btn-edit"><i class="fa fa-edit"></i> LABEL_EDIT </button>
-
 
486
                            <button id="delete-button" type="button" class="btn btn-primary btn-delete"><i class="fa fa-ban"></i> LABEL_DELETE </button>
-
 
487
                        </div>
554
                       	</div>
488
                    </div>
555
                    </div>
489
                 </div>
556
                <?php echo $this->form()->closeTag($form); ?>
490
            </div>
557
            </div>
491
        </div>
558
        </div>
492
 	</div>
559
 	</div>
Línea 501... Línea 568...
501
            <p class="card-text">{{:job_description.functions}}</p>
568
            <p class="card-text">{{:job_description.functions}}</p>
502
        </div>
569
        </div>
503
    </div>
570
    </div>
504
</script>
571
</script>
Línea 505... Línea -...
505
 
-
 
506
<section id="interview" style="display: none;">
-
 
507
	<div class="container-fluid">
-
 
508
    	<div class="row">
-
 
509
        	<div class="col-12">
-
 
510
                <form action="#" name="form-interview" id="form-interview">
-
 
511
                    <input type="hidden" name="form-continue" id="form-continue" value="0" />
-
 
512
			    	<div class="card">   
-
 
513
                    <?php
-
 
514
                         $form->setAttributes([
-
 
515
                             'method' => 'post',
-
 
516
                             'name' => 'form-add',
-
 
517
                             'id' => 'form-add'
-
 
518
                         ]);
-
 
519
                         $form->prepare();
-
 
520
                         echo $this->form()->openTag($form);
-
 
521
                         ?>     
-
 
522
			    		<div class="card-header">		
-
 
523
                            <label>interview</label>
-
 
524
			    		</div>            
-
 
525
			    		<div class="card-body">
-
 
526
                            <div id="competencies-job"></div>
-
 
527
                                <div class="form-group">
-
 
528
                                    <?php
-
 
529
                                    $element = $form->get('comment');
-
 
530
                                    $element->setOptions(['label' => 'LABEL_COMMENT']);
-
 
531
                                    $element->setAttributes(['class' => 'form-control']);
-
 
532
                                    echo $this->formLabel($element);
-
 
533
                                    echo $this->formText($element);
-
 
534
                                    ?>
-
 
535
                                </div>
-
 
536
                                <div class="form-group">
-
 
537
                                    <?php
-
 
538
                                    $element = $form->get('points');
-
 
539
                                    $element->setAttributes(['class' => 'form-control']);
-
 
540
                                    $element->setOptions(['label' => 'LABEL_EVALUATION']);
-
 
541
                                    echo $this->formLabel($element);
-
 
542
                                    echo $this->formSelect($element);
-
 
543
                                    ?>
-
 
544
                                </div>
-
 
545
                                <div class="form-group">
-
 
546
                                    <?php
-
 
547
                                    $element = $form->get('status');
-
 
548
                                    $element->setAttributes(['class' => 'form-control']);
-
 
549
                                    $element->setOptions(['label' => 'LABEL_STATUS']);
-
 
550
                                    echo $this->formLabel($element);
-
 
551
                                    echo $this->formSelect($element);
-
 
552
                                    ?>
-
 
553
                                </div>
-
 
554
                                <div class="form-group">
-
 
555
                                    <?php
-
 
556
                                    $element = $form->get('type');
-
 
557
                                    $element->setAttributes(['class' => 'form-control']);
-
 
558
                                    $element->setOptions(['label' => 'LABEL_INTERVIEWED_BY']);
-
 
559
                                    echo $this->formLabel($element);
-
 
560
                                    echo $this->formSelect($element);
-
 
561
                                    ?>
-
 
562
                                </div>
-
 
563
                            </div>
-
 
564
                       	</div>
-
 
565
                        <div class="card-footer clearfix">
-
 
566
                        <button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
-
 
567
                        <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
-
 
568
                        <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button> 
-
 
569
                        </div>
-
 
570
                    </div>
-
 
571
                </form>
-
 
572
            </div>
-
 
573
        </div>
-
 
574
 	</div>
-
 
575
</section>
-
 
576
 
572
 
577
<script id="competenciesTemplate" type="text/x-jsrender">
573
<script id="competenciesTemplata" type="text/x-jsrender">
578
<table class="table table-bordered" id="panel-{{:slug_section}}>  
574
<table class="table table-bordered" id="panel-{{:slug_section}}">
579
    <thead>
575
    <thead>
580
        <tr>
576
        <tr>
581
           <th style="width: 50%;">LABEL_ELEMENT</th>
577
           <th style="width: 50%;">LABEL_ELEMENT</th>
582
           <th style="width: 50%;">LABEL_TITLE</th>
578
           <th style="width: 50%;">LABEL_TITLE</th>
583
        </tr>
579
        </tr>
584
    </thead> 
580
    </thead>
585
    <tbody>
581
    <tbody>
586
        {{for job_description.competencies}}
582
        {{for job_description.competencies}}
587
            <tr>
583
            <tr>
588
               <td class="text-left">LABEL_COMPETENCY</td>
584
               <td class="text-left">LABEL_COMPETENCY</td>
589
               <td class="text-left">{{:competency_name}}</td>
585
               <td class="text-left">{{:competency_name}}</td>
590
            </tr>
586
            </tr>
591
        
587
 
592
            {{for behaviors}}
588
            {{for behaviors}}
593
                <tr>
589
                <tr>
594
                   <td class="text-left">--LABEL_CONDUCT</td>
590
                   <td class="text-left">--LABEL_CONDUCT</td>
595
                   <td class="text-left">
591
                   <td class="text-left">
596
                      {{:description}}
592
                      {{:description}}
597
                   </td>    
593
                   </td>
598
                </tr>
594
                </tr>
599
                <tr>
595
                <tr>
600
                    <td colspan="2" data-competency-behavior data-competency-uuid="{{:competency_uuid}}" data-behavior-uuid="{{:uuid}}">
596
                    <td colspan="2" data-competency-behavior data-competency-uuid="{{:competency_uuid}}" data-behavior-uuid="{{:uuid}}">
601
                        <label for="textarea-{{:competency_uuid}}-{{:uuid}}">LABEL_COMMENT</label>
597
                        <label for="textarea-{{:competency_uuid}}-{{:uuid}}">LABEL_COMMENT</label>
602
                        
598
 
603
                        <textarea
599
                        <textarea
604
                            id="textarea-{{:competency_uuid}}-{{:uuid}}"
600
                            id="textarea-{{:competency_uuid}}-{{:uuid}}"
605
                            class="form-control"
601
                            class="form-control"
606
                        ></textarea>
602
                        ></textarea>
607
                        
603
 
Línea 608... Línea 604...
608
                        <label for="select-{{:competency_uuid}}-{{:uuid}}">LABEL_EVALUATION</label>
604
                        <label for="select-{{:competency_uuid}}-{{:uuid}}">LABEL_EVALUATION</label>
609
 
605
 
610
                        <select class="form-control" id="select-{{:competency_uuid}}-{{:uuid}}">
606
                        <select class="form-control" id="select-{{:competency_uuid}}-{{:uuid}}">
Línea 620... Línea 616...
620
 
616
 
621
        {{/for}}
617
        {{/for}}
622
    </tbody>
618
    </tbody>
623
</table>
619
</table>
-
 
620
</script>
-
 
621
 
-
 
622
<script id="competenciesTemplate" type="text/x-jsrender">
-
 
623
<table class="table table-bordered" id="panel-{{:slug_section}}">
-
 
624
    <thead>
-
 
625
        <tr>
-
 
626
           <th style="width: 50%;">LABEL_ELEMENT</th>
-
 
627
           <th style="width: 50%;">LABEL_TITLE</th>
-
 
628
        </tr>
-
 
629
    </thead>
-
 
630
    <tbody>
-
 
631
        {{for job_description.competencies}}
-
 
632
            <tr>
-
 
633
               <td class="text-left">LABEL_COMPETENCY</td>
-
 
634
               <td class="text-left">{{:competency_name}}</td>
-
 
635
            </tr>
-
 
636
 
-
 
637
            {{for behaviors}}
-
 
638
                <tr>
-
 
639
                    <td colspan="2">
-
 
640
                        <table class="table table-borderless">
-
 
641
                            <tr>
-
 
642
                                <td class="text-left">--LABEL_CONDUCT</td>
-
 
643
                                <td class="text-left">
-
 
644
                                    {{:description}}
-
 
645
                                </td>
-
 
646
                            </tr>
-
 
647
                            <tr>
-
 
648
                                <td colspan="2" data-competency-behavior data-competency-uuid="{{:competency_uuid}}" data-behavior-uuid="{{:uuid}}">
-
 
649
                                    <label for="textarea-{{:competency_uuid}}-{{:uuid}}">LABEL_COMMENT</label>
-
 
650
 
-
 
651
                                    <textarea
-
 
652
                                        id="textarea-{{:competency_uuid}}-{{:uuid}}"
-
 
653
                                        class="form-control"
-
 
654
                                    ></textarea>
-
 
655
 
-
 
656
                                    <label for="select-{{:competency_uuid}}-{{:uuid}}">LABEL_EVALUATION</label>
-
 
657
 
-
 
658
                                    <select class="form-control" id="select-{{:competency_uuid}}-{{:uuid}}">
-
 
659
                                        <option value="<?= $points_0 ?>"><?= $points_0 ?></option>
-
 
660
                                        <option value="<?= $points_1 ?>"><?= $points_1 ?></option>
-
 
661
                                        <option value="<?= $points_2 ?>"><?= $points_2 ?></option>
-
 
662
                                        <option value="<?= $points_3 ?>"><?= $points_3 ?></option>
-
 
663
                                        <option value="<?= $points_4 ?>"><?= $points_4 ?></option>
-
 
664
                                    </select>
-
 
665
                                </td>
-
 
666
                            </tr>
-
 
667
                        </table>
-
 
668
                    </td>
-
 
669
                </tr>
-
 
670
            {{/for}}
-
 
671
        {{/for}}
-
 
672
    </tbody>
-
 
673
</table>
624
</script>
674
</script>