Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 3563 Rev 3571
Línea 3... Línea 3...
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
4
$roleName       = $currentUser->getUserTypeId();
4
$roleName       = $currentUser->getUserTypeId();
Línea 5... Línea 5...
5
 
5
 
6
$routeIndex = $this->url('recruitment-and-selection/interview/form');
6
$routeIndex = $this->url('recruitment-and-selection/interview/form');
-
 
7
$routeAdd = $this->url('recruitment-and-selection/interview/form/add');
Línea 7... Línea 8...
7
$routeAdd = $this->url('recruitment-and-selection/interview/form/add');
8
$routeVacancy = $this->url('recruitment-and-selection/interview/vacancy');
8
 
9
 
9
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
10
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/add') ? 1 : 0;
10
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/edit') ? 1 : 0;
11
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/form/edit') ? 1 : 0;
Línea 457... Línea 458...
457
        $("#content").show();
458
        $("#content").show();
458
        $("#main").hide();
459
        $("#main").hide();
459
        $('#form-interview').submit();
460
        $('#form-interview').submit();
460
    });
461
    });
Línea 461... Línea 462...
461
 
462
 
462
    // $('#vacancy_uuid').on('change', function (event) {
463
    $('#vacancy_uuid').on('change', function (event) {
Línea 463... Línea 464...
463
    //     $('#candidate_uuid').html('');
464
        $('#candidate_uuid').html('');
Línea -... Línea 465...
-
 
465
 
-
 
466
        var uuid = event.target.value;
-
 
467
 
-
 
468
        $.ajax({
464
 
469
            'dataType': 'json',
-
 
470
            'accept': 'application/json',
-
 
471
            'method': 'get',
-
 
472
            'url':  String('$routeVacancy').replaceAll('UUID_PLACEHOLDER', uuid),
-
 
473
        }).done(function (response) {
-
 
474
            var data = response.data
-
 
475
 
-
 
476
            data.candidates.forEach(function (candidate) {
-
 
477
                var option = $('<option />')
-
 
478
                    .val(candidate.uuid)
-
 
479
                    .text(candidate.first_name)
-
 
480
                    .data('addUrl', candidate.add_url)
Línea 465... Línea -...
465
    //     var uuid = event.target.value;
-
 
466
 
-
 
467
    //     $("#add-button").data('url', String('$routeAdd').replaceAll('UUID_PLACEHOLDER', uuid))
-
 
468
 
-
 
469
    //     $.ajax({
-
 
470
    //         'dataType': 'json',
-
 
471
    //         'accept': 'application/json',
-
 
472
    //         'method': 'get',
-
 
473
    //         'url': "$routeIndex" + "?vacancy_uuid=" + $('#vacancy_uuid').val(),
-
 
474
    //     }).done(function (response) {
-
 
475
    //         var data = response.data
-
 
476
 
-
 
477
    //         data.candidates.forEach(function (candidate) {
-
 
478
    //             var option = $('<option />')
-
 
479
    //                 .val(candidate.uuid)
-
 
480
    //                 .text(candidate.first_name)
-
 
481
    //                 .data('addUrl', candidate.add_url)
-
 
482
    //                 .data('editUrl', candidate.edit_url)
481
                    .data('editUrl', candidate.edit_url)
483
    //                 .data('deleteUrl', candidate.delete_url)
482
                    .data('deleteUrl', candidate.delete_url)
484
    //                 .data('reportUrl', candidate.report_url)
483
                    .data('reportUrl', candidate.report_url)
485
 
484
 
486
    //             $('#candidate_uuid').append(option);
485
                $('#candidate_uuid').append(option);
487
    //         });
486
            });
Línea 488... Línea 487...
488
 
487
 
Línea 489... Línea 488...
489
    //         $('#job-description').html($('#job-description-template').render(response.data));
488
            $('#job-description').html($('#job-description-template').render(response.data));
490
    //     })
489
        })
491
    // });
490
    });
492
 
491