Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14912 Rev 14913
Línea 1... Línea 1...
1
<?php
1
<?php
2
$acl = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser = $this->currentUserHelper();
3
$currentUser = $this->currentUserHelper();
4
$currentUser = $this->pl();
-
 
5
$roleName = $currentUser->getUserTypeId();
4
$roleName = $currentUser->getUserTypeId();
Línea 6... Línea -...
6
 
-
 
7
$currentUserPlugin = $this->plugin('currentUserPlugin');
-
 
8
$user = $currentUserPlugin->getUser();
-
 
9
 
5
 
10
$params = [
6
$params = [
11
    'interview_uuid' => $interview_uuid,
7
    'interview_uuid' => $interview_uuid,
Línea 12... Línea 8...
12
];
8
];
Línea 441... Línea 437...
441
                removePlugins: 'elementspath,Anchor',
437
                removePlugins: 'elementspath,Anchor',
442
                heigth: 100
438
                heigth: 100
443
    });
439
    });
444
});
440
});
445
JS;
441
JS;
446
$this->inlineScript()->captureEnd();
-
 
Línea 447... Línea 442...
447
 
442
 
448
$js = <<<JS
443
$js = <<<JS
449
	const backendVariables= {
444
	const backendVariables= {
450
        user: $user->first_name
445
        user: $user
451
	}	
-
 
452
 
-
 
453
    console.log(backendVariables)
446
	}	
Línea 454... Línea 447...
454
JS;
447
JS;
-
 
448
 
455
 
449
$this->inlineScript()->appendScript($js);
Línea 456... Línea 450...
456
$this->inlineScript()->appendScript($js);
450
$this->inlineScript()->captureEnd();
457
?>
451
?>
Línea 474... Línea 468...
474
            <div class="col-12">
468
            <div class="col-12">
475
                <div class="card">
469
                <div class="card">
476
                    <div class="card-body">
470
                    <div class="card-body">
477
                        <table id="gridTable" class="table   table-hover">
471
                        <table id="gridTable" class="table   table-hover">
478
                            <thead>
472
                            <thead>
479
                                <tr>
473
                            <tr>
480
                                    <th>LABEL_TITLE</th>
474
                                <th>LABEL_TITLE</th>
481
                                    <th>LABEL_COMMENT</th>
475
                                <th>LABEL_COMMENT</th>
482
                                    <th>LABEL_ACTIONS</th>
476
                                <th>LABEL_ACTIONS</th>
483
                                </tr>
477
                            </tr>
484
                            </thead>
478
                            </thead>
485
                            <tbody>
479
                            <tbody>
486
                            </tbody>
480
                            </tbody>
487
                        </table>
481
                        </table>
488
                    </div>
482
                    </div>
Línea 531... Línea 525...
531
                    echo $this->formLabel($element);
525
                    echo $this->formLabel($element);
532
                    echo $this->formText($element);
526
                    echo $this->formText($element);
533
                    ?>
527
                    ?>
534
                </div>
528
                </div>
535
                <div class="form-group">
529
                <div class="form-group">
536
                    <?php
530
              	   <?php 
537
                    $element = $form->get('coment');
531
                     $element = $form->get('coment');
538
                    $element->setAttributes(['class' => 'form-control']);
532
                     $element->setAttributes(['class' => 'form-control']);    
539
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
533
                     $element->setOptions(['label' => 'LABEL_COMMENT']);                                       
540
                    echo $this->formLabel($element);
534
                     echo $this->formLabel($element);
541
                    echo $this->formTextArea($element);
535
                     echo $this->formTextArea($element);
542
                    ?>
536
                    ?>
543
                </div>
537
      	        </div>
544
                <div class="form-group">
538
                <div class="form-group">
545
                    <?php
539
                    <?php
546
                    $element = $form->get('file');
540
                    $element = $form->get('file');
547
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
541
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
548
                    $element->setOptions(['label' => 'LABEL_FILE']);
542
                    $element->setOptions(['label' => 'LABEL_FILE']);
Línea 576... Línea 570...
576
        ?>
570
        ?>
577
        <div class="modal-content">
571
        <div class="modal-content">
578
            <div class="modal-header">
572
            <div class="modal-header">
579
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
573
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
580
            </div>
574
            </div>
581
            <div class="modal-body">
575
            <div class="modal-body">  
582
                <div class="form-group">
576
                <div class="form-group">
583
                    <?php
577
              	   <?php 
584
                    $element = $form->get('title');
578
                     $element = $form->get('title');
585
                    $element->setAttributes(['class' => 'form-control']);
579
                     $element->setAttributes(['class' => 'form-control']);    
586
                    $element->setOptions(['label' => 'LABEL_TITLE']);
580
                     $element->setOptions(['label' => 'LABEL_TITLE']);                                       
587
                    echo $this->formLabel($element);
581
                     echo $this->formLabel($element);
588
                    echo $this->formText($element);
582
                     echo $this->formText($element);
589
                    ?>
583
                    ?>
590
                </div>
584
      	        </div>
591
                <div class="form-group">
585
                <div class="form-group">
592
                    <?php
586
                    <?php
593
                    $element = $form->get('file');
587
                    $element = $form->get('file');
594
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
588
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
595
                    $element->setOptions(['label' => 'LABEL_FILE']);
589
                    $element->setOptions(['label' => 'LABEL_FILE']);
Línea 598... Línea 592...
598
                    <div class="file-loading">
592
                    <div class="file-loading">
599
                        <?php echo $this->formFile($element); ?>
593
                        <?php echo $this->formFile($element); ?>
600
                    </div>
594
                    </div>
Línea 601... Línea 595...
601
 
595
 
602
                    <div class="mt-2" id="current-file">
596
                    <div class="mt-2" id="current-file">
603
                        <a href="" class="btn btn-primary" id="btn-cv" target="_blank">Evaluacion actual</a>
597
                        <a href="" class="btn btn-primary" id="btn-cv"  target="_blank">Evaluacion actual</a>
604
                    </div>
598
                    </div>
605
                </div>
599
                </div>
606
                <div class="form-group">
600
                <div class="form-group">
607
                    <?php
601
                    <?php
Línea 618... Línea 612...
618
                </div>
612
                </div>
619
            </div>
613
            </div>
620
            <?php echo $this->form()->closeTag($form); ?>
614
            <?php echo $this->form()->closeTag($form); ?>
621
        </div>
615
        </div>
622
    </div>
616
    </div>
623
</div>
-
 
624
617
</div>
-
 
618