Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15443 Rev 16320
Línea 62... Línea 62...
62
$status_active = \LeadersLinked\Model\PerformanceEvaluationForm::STATUS_ACTIVE;
62
$status_active = \LeadersLinked\Model\PerformanceEvaluationForm::STATUS_ACTIVE;
63
$status_inactive = \LeadersLinked\Model\PerformanceEvaluationForm::STATUS_INACTIVE;
63
$status_inactive = \LeadersLinked\Model\PerformanceEvaluationForm::STATUS_INACTIVE;
Línea 64... Línea 64...
64
 
64
 
Línea 65... Línea 65...
65
$vars = "var jobs_description = new Array(); \r\n";
65
$vars = "var jobs_description = new Array(); \r\n";
66
 
-
 
67
foreach($jobsDescription as $uuid => $link)
66
 
68
{
67
foreach ($jobsDescription as $uuid => $link) {
Línea 586... Línea 585...
586
 
585
 
587
$this->inlineScript()->captureEnd();
586
$this->inlineScript()->captureEnd();
588
?>
587
?>
589
<!-- Content Header (Page header) -->
588
<!-- Content Header (Page header) -->
590
<section class="content-header" id="row-header">
589
<section class="content-header" id="row-header">
591
   <div class="container-fluid">
590
    <div class="container-fluid">
592
      <div class="row mb-2">
591
        <div class="row mb-2">
593
         <div class="col-sm-12">
592
            <div class="col-sm-12">
594
            <h1>LABEL_PERFORMANCE_EVALUATIONS</h1>
593
                <h1>LABEL_FORMS</h1>
595
         </div>
594
            </div>
596
      </div>
595
        </div>
597
   </div>
596
    </div>
598
   <!-- /.container-fluid -->
597
    <!-- /.container-fluid -->
599
</section>
598
</section>
600
<section class="content">
599
<section class="content">
601
    <div class="container-fluid">
600
    <div class="container-fluid">
602
       <div class="row">
601
        <div class="row">
603
          <div class="col-12" id="row-list">
602
            <div class="col-12" id="row-list">
604
             <div class="card">
603
                <div class="card">
605
                <div class="card-body">
604
                    <div class="card-body">
606
                   <table id="gridTable" class="table   table-hover">
605
                        <table id="gridTable" class="table   table-hover">
607
                      <thead>
606
                            <thead>
608
                         <tr>
607
                                <tr>
609
                            <th style="width:30%">LABEL_NAME</th>
608
                                    <th style="width:30%">LABEL_NAME</th>
610
                            <th style="width:15%">LABEL_EVALUATIONS</th>
609
                                    <th style="width:15%">LABEL_EVALUATIONS</th>
611
                            <th style="width:15%">LABEL_DATE</th>
610
                                    <th style="width:15%">LABEL_DATE</th>
612
                            <th style="width:10%">LABEL_ACTIVE</th>
611
                                    <th style="width:10%">LABEL_ACTIVE</th>
613
                            <th style="width:30%">LABEL_ACTIONS</th>
612
                                    <th style="width:30%">LABEL_ACTIONS</th>
614
                         </tr>
613
                                </tr>
615
                      </thead>
614
                            </thead>
616
                      <tbody></tbody>
615
                            <tbody></tbody>
-
 
616
                        </table>
-
 
617
                    </div>
-
 
618
                    <div class="card-footer clearfix">
-
 
619
                        <div style="float:right;">
-
 
620
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
-
 
621
                            <?php if ($allowAdd) : ?>
-
 
622
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
623
                            <?php endif; ?>
-
 
624
                        </div>
617
                   </table>
625
                    </div>
618
                </div>
-
 
619
                <div class="card-footer clearfix">
-
 
620
                   <div style="float:right;">
-
 
621
                      <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
-
 
622
                      <?php if ($allowAdd) : ?>
-
 
623
                      <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
-
 
624
                      <?php endif; ?>
-
 
625
                   </div>
-
 
626
                </div>
626
                </div>
627
             </div>
-
 
628
          </div>
627
            </div>
629
       </div>
628
        </div>
630
 
629
 
631
       <div class="row" id="row-form" style="display: none">
630
        <div class="row" id="row-form" style="display: none">
632
          <div class="col-12">
631
            <div class="col-12">
633
             <div class="card">
632
                <div class="card">
634
              	<?php 
633
                    <?php
635
                    $form = $this->form;
634
                    $form = $this->form;
636
            		$form->setAttributes([
635
                    $form->setAttributes([
637
                        'method'    => 'post',
636
                        'method'    => 'post',
638
                        'name'      => 'form',
637
                        'name'      => 'form',
639
                        'id'        => 'form'
638
                        'id'        => 'form'
640
                    ]);
639
                    ]);
641
    
640
 
642
                    $form->prepare();
641
                    $form->prepare();
643
                    echo $this->form()->openTag($form);
642
                    echo $this->form()->openTag($form);
644
                ?>		
643
                    ?>
645
              	<div class="card-header">
644
                    <div class="card-header">
646
					<h4 class="modal-title">LABEL_PERFORMANCE_EVALUATION - <span id="form-title"></span></h4>
645
                        <h4 class="modal-title">LABEL_PERFORMANCE_EVALUATION - <span id="form-title"></span></h4>
647
                </div>
646
                    </div>
648
                <div class="card-body">
647
                    <div class="card-body">
649
						<div class="form-group">
648
                        <div class="form-group">
650
        					<?php 
649
                            <?php
651
                            $element = $form->get('job_description_id');
650
                            $element = $form->get('job_description_id');
652
                            $element->setOptions(['label' => 'LABEL_JOB_DESCRIPTION']);
651
                            $element->setOptions(['label' => 'LABEL_JOB_DESCRIPTION']);
653
                            $element->setAttributes(['class' => 'form-control']);
652
                            $element->setAttributes(['class' => 'form-control']);
654
                                            
653
 
655
                            echo $this->formLabel($element);
654
                            echo $this->formLabel($element);
656
                            echo $this->formSelect($element);
655
                            echo $this->formSelect($element);
657
                            ?>
656
                            ?>
658
						</div>					
657
                        </div>
659
    					<div class="form-group">
658
                        <div class="form-group">
660
        					<?php 
659
                            <?php
661
                            $element = $form->get('name');
660
                            $element = $form->get('name');
662
                            $element->setOptions(['label' => 'LABEL_NAME']);
661
                            $element->setOptions(['label' => 'LABEL_NAME']);
663
                            $element->setAttributes(['class' => 'form-control']);
662
                            $element->setAttributes(['class' => 'form-control']);
664
                                            
663
 
665
                            echo $this->formLabel($element);
664
                            echo $this->formLabel($element);
666
                            echo $this->formText($element);
665
                            echo $this->formText($element);
667
                            ?>
666
                            ?>
668
						</div>
667
                        </div>
669
						<div class="form-group">
668
                        <div class="form-group">
670
                    	<?php 
669
                            <?php
671
                            $element = $form->get('description');
670
                            $element = $form->get('description');
672
                            $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
671
                            $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
Línea 673... Línea 672...
673
                            $element->setAttributes(['class' => 'form-control']);
672
                            $element->setAttributes(['class' => 'form-control']);
674
 
673
 
675
                            echo $this->formLabel($element);
674
                            echo $this->formLabel($element);
676
                            echo $this->formTextArea($element);
675
                            echo $this->formTextArea($element);
677
                        ?>
676
                            ?>
678
						</div>
677
                        </div>
679
						<div class="form-group">
678
                        <div class="form-group">
680
                      	<?php 
679
                            <?php
681
                            $element = $form->get('status');
680
                            $element = $form->get('status');
682
                            $element->setAttributes(['class' => 'form-control']);
681
                            $element->setAttributes(['class' => 'form-control']);
683
                            echo $this->formCheckbox($element);
682
                            echo $this->formCheckbox($element);
684
                        ?>
683
                            ?>
685
						</div>
684
                        </div>
686
						
685
 
687
						<div class="form-group" id="competencies-to-job" style="display:none">
686
                        <div class="form-group" id="competencies-to-job" style="display:none">
688
                            <div class="row">
687
                            <div class="row">
689
                               <div class="col-xs-12 col-md-12">
688
                                <div class="col-xs-12 col-md-12">
690
                                  <hr>
689
                                    <hr>
691
                                  <h4 style="font-size: 18px;font-weight: bold;">LABEL_COMPETENCIES_TO_JOB:</h4>
690
                                    <h4 style="font-size: 18px;font-weight: bold;">LABEL_COMPETENCIES_TO_JOB:</h4>
692
                                  <br>
691
                                    <br>
693
                                  <div class="panel-group" id="rows-job-competencies"></div>
692
                                    <div class="panel-group" id="rows-job-competencies"></div>
-
 
693
                                </div>
694
                               </div>
694
                            </div>
-
 
695
                        </div>
-
 
696
                    </div>
-
 
697
                    <div class="card-footer clearfix">
-
 
698
                        <div style="float:right;">
-
 
699
                            <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
700
                            <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
701
                        </div>
695
                            </div>
702
                    </div>
696
                   		</div>
-
 
697
                </div>
-
 
698
                <div class="card-footer clearfix">
-
 
699
                   <div style="float:right;">
-
 
700
                   		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
701
                 		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
-
 
702
                   </div>
-
 
703
                </div>
703
                    <?php echo $this->form()->closeTag($form); ?>
704
                <?php echo $this->form()->closeTag($form); ?>
-
 
705
             </div>
704
                </div>
706
          </div>
705
            </div>
707
       </div>
706
        </div>
Línea 708... Línea 707...
708
    </div>
707
    </div>
709
 </section>   
708
</section>
710
 
709
 
711
 
710
 
712
 
711
 
713
<script id="competencyTemplate" type="text/x-jsrender">
712
<script id="competencyTemplate" type="text/x-jsrender">
714
 <div class="panel panel-default panel-competency" id="panel-{{:uuid}}" data-competency="{{:uuid}}">
713
    <div class="panel panel-default panel-competency" id="panel-{{:uuid}}" data-competency="{{:uuid}}">
Línea 760... Línea 759...
760
</div>
759
</div>
761
</script>
760
</script>
Línea 762... Línea 761...
762
 
761
 
763
 
762
 
764
<script id="competencyTemplateWithNivel" type="text/x-jsrender">
763
<script id="competencyTemplateWithNivel" type="text/x-jsrender">
765
 <div class="panel panel-default panel-competency" id="panel-{{:uuid}}" data-competency="{{:uuid}}">
764
    <div class="panel panel-default panel-competency" id="panel-{{:uuid}}" data-competency="{{:uuid}}">
766
   <div class="panel-heading">
765
   <div class="panel-heading">
767
      <h4 class="panel-title" style="    font-size: 18px;">
766
      <h4 class="panel-title" style="    font-size: 18px;">
768
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:uuid}}" href="#collapse-{{:uuid}}">
767
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:uuid}}" href="#collapse-{{:uuid}}">