Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3608 Rev 3624
Línea 295... Línea 295...
295
                    content: JSON.stringify(getContent()),
295
                    content: JSON.stringify(getContent()),
296
                    vacancy_uuid: $('#vacancy_uuid').val(),
296
                    vacancy_uuid: $('#vacancy_uuid').val(),
297
                    candidate_uuid: $('#candidate_uuid').val(),
297
                    candidate_uuid: $('#candidate_uuid').val(),
298
                    points: $('#points').val(),
298
                    points: $('#points').val(),
299
                    comment: $('#comment').val(),
299
                    comment: $('#comment').val(),
300
                    type: $('#type').val(),
-
 
301
                    status: $('#status').val(),
300
                    status: $('#status').val(),
302
                }
301
                }
303
            }).done(function(response) {
302
            }).done(function(response) {
304
                NProgress.start();
303
                NProgress.start();
305
                if (response['success']) {
304
                if (response['success']) {
Línea 339... Línea 338...
339
        }).done(function(response) {
338
        }).done(function(response) {
340
            if (response['success']) {
339
            if (response['success']) {
341
                var data = response.data
340
                var data = response.data
342
                $("#interview #comment").val('');
341
                $("#interview #comment").val('');
343
                $('#interview #status').val('');
342
                $('#interview #status').val('');
344
                $('#interview #type').val('')
-
 
345
                $("#interview #points").val('$points_0');
343
                $("#interview #points").val('$points_0');
Línea 346... Línea 344...
346
 
344
 
347
                $("#form-interview").attr('action', url)
345
                $("#form-interview").attr('action', url)
348
                $("#content").hide();
346
                $("#content").hide();
Línea 369... Línea 367...
369
        }).done(function(response) {
367
        }).done(function(response) {
370
            if (response['success']) {
368
            if (response['success']) {
371
                var data = response.data
369
                var data = response.data
372
                $("#interview #comment").val(data['interview']['comment']);
370
                $("#interview #comment").val(data['interview']['comment']);
373
                $('#interview #status').val(data['interview']['status']);
371
                $('#interview #status').val(data['interview']['status']);
374
                $('#interview #type').val(data['interview']['type']);
-
 
375
                $("#interview #points").val(data['interview']['points']);
372
                $("#interview #points").val(data['interview']['points']);
376
                $("#competencies-job").html($("#competenciesTemplate").render(data))
373
                $("#competencies-job").html($("#competenciesTemplate").render(data))
377
                data.interview.content.forEach(obj => {
374
                data.interview.content.forEach(obj => {
378
                    $('#textarea-' + obj.competencyUuid + '-' + obj.behaviorUuid).val(obj.comment);
375
                    $('#textarea-' + obj.competencyUuid + '-' + obj.behaviorUuid).val(obj.comment);
379
                    $('#select-' + obj.competencyUuid + '-' + obj.behaviorUuid).val(obj.evaluation);
376
                    $('#select-' + obj.competencyUuid + '-' + obj.behaviorUuid).val(obj.evaluation);
Línea 631... Línea 628...
631
                                            $element->setOptions(['label' => 'LABEL_STATUS']);
628
                                            $element->setOptions(['label' => 'LABEL_STATUS']);
632
                                            echo $this->formLabel($element);
629
                                            echo $this->formLabel($element);
633
                                            echo $this->formSelect($element);
630
                                            echo $this->formSelect($element);
634
                                            ?>
631
                                            ?>
635
                                        </div>
632
                                        </div>
636
                                        <div class="form-group">
-
 
637
                                            <?php
-
 
638
                                            $element = $form->get('type');
-
 
639
                                            $element->setAttributes(['class' => 'form-control']);
-
 
640
                                            $element->setOptions(['label' => 'LABEL_INTERVIEWED_BY']);
-
 
641
                                            echo $this->formLabel($element);
-
 
642
                                            echo $this->formSelect($element);
-
 
643
                                            ?>
-
 
644
                                        </div>
-
 
645
                                    </div>
633
                                    </div>
646
                                </div>
634
                                </div>
647
                            </div>
635
                            </div>
648
                            <div class="card-footer clearfix">
636
                            <div class="card-footer clearfix">
649
                                <button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
637
                                <button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>