Proyectos de Subversion LeadersLinked - Backend

Rev

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

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