Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 2509 Rev 2510
Línea 52... Línea 52...
52
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
52
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
Línea 53... Línea 53...
53
 
53
 
54
// JsRender //
54
// JsRender //
Línea -... Línea 55...
-
 
55
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
-
 
56
 
-
 
57
$evaluation_0 = \LeadersLinked\Model\RecruitmentSelectionInterview::EVALUATION_0;
-
 
58
$evaluation_1 = \LeadersLinked\Model\RecruitmentSelectionInterview::EVALUATION_1;
-
 
59
$evaluation_2 = \LeadersLinked\Model\RecruitmentSelectionInterview::EVALUATION_2;
-
 
60
$evaluation_3 = \LeadersLinked\Model\RecruitmentSelectionInterview::EVALUATION_3;
-
 
61
$evaluation_4 = \LeadersLinked\Model\RecruitmentSelectionInterview::EVALUATION_4;
-
 
62
 
-
 
63
$points_0 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_0;
-
 
64
$points_1 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_1;
-
 
65
$points_2 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_2;
-
 
66
$points_3 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_3;
-
 
67
$points_4 = \LeadersLinked\Model\RecruitmentSelectionInterview::POINTS_4;
-
 
68
 
55
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
69
 
56
 
70
 
Línea 57... Línea 71...
57
$this->headStyle()->captureStart();
71
$this->headStyle()->captureStart();
58
echo <<<CSS
72
echo <<<CSS
Línea 285... Línea 299...
285
    
299
    
286
    $('#form-filter #candidates_uuid').change(function(e) {
300
    $('#form-filter #candidates_uuid').change(function(e) {
287
        e.preventDefault();
301
        e.preventDefault();
Línea 288... Línea -...
288
    })
-
 
289
 
-
 
290
    $('body').on('click', 'button.btn-edit-behavior', function(e) {
-
 
291
        e.preventDefault();
-
 
292
        var competency_id = $(this).data('competency');
-
 
293
        var behavior_id = $(this).data('behavior');
-
 
294
        competencies_selected.map((item) => {
-
 
295
            if (item.competency_id == competency_id) {
-
 
296
                item.behaviors.map((b) => {
-
 
297
                    if (b.behavior_id == behavior_id) {
-
 
298
                        $('#form-behavior #behavior-id').val(b.behavior_id);
-
 
299
                        $('#form-behavior #behavior-competency').val(b.competency_id);
-
 
300
                        $('#form-behavior #behavior-level').val(b.level);
-
 
301
                        $('#modal-behavior h4[class="modal-title"]').html('LABEL_EDIT LABEL_CONDUCT');
-
 
302
                        $('#modal-behavior').modal('show');
-
 
303
                        return;
-
 
304
                    }
-
 
305
                });
-
 
306
            }
-
 
307
        });
-
 
308
    });
-
 
309
 
-
 
310
    $('button.btn-behavior-submit').click(function(e) {
-
 
311
        if ($("#behavior-description").val() == "") {
-
 
312
            $.fn.showError('ERROR_ENTER_DESCRIPTION');
-
 
313
            return;
-
 
314
        } else {
-
 
315
            editBehavior($("#behavior-competency").val(), $("#behavior-id").val(), $("#behavior-level").val())
-
 
316
            $('#modal-behavior').modal('hide');
-
 
317
            return;
-
 
318
        }
-
 
319
    });
302
    })
320
 
303
 
Línea 321... Línea 304...
321
    $('#vacancy_uuid').on('change', function () {
304
    $('#vacancy_uuid').on('change', function () {
322
        $('#candidate_uuid').html('');
305
        $('#candidate_uuid').html('');
Línea 441... Línea 424...
441
            </div>
424
            </div>
442
        </div>
425
        </div>
443
 	</div>
426
 	</div>
444
</section>
427
</section>
Línea 445... Línea -...
445
 
-
 
446
<!--start modal behavior-->
-
 
447
<div  id="modal-behavior" class="modal" tabindex="-1" role="dialog">
-
 
448
   <div class="modal-dialog modal-lg" role="document">
-
 
449
      <form action="#" name="form-behavior" id="form-behavior">
-
 
450
         <input type="hidden" name="behavior-id" id="behavior-id" value="" />
-
 
451
         <input type="hidden" name="behavior-competency" id="behavior-competency" value="" />
-
 
452
         <div class="modal-content">
-
 
453
            <div class="modal-header">
-
 
454
               <h4 class="modal-title">LABEL_EDIT LABEL_LEVEL</h4>
-
 
455
               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
-
 
456
               <span aria-hidden="true">&times;</span>
-
 
457
               </button>
-
 
458
            </div>
-
 
459
            <div class="modal-body">
-
 
460
               <div class="form-group">
-
 
461
                  <label for="behavior-value">LABEL_LEVEL</label>
-
 
462
                  <select class="form-control" id="behavior-level" name="behavior-level">
-
 
463
                     <option value="0">LABEL_NA</option>
-
 
464
                     <option value="1">LABEL_LEVEL_ONE</option>
-
 
465
                     <option value="2">LABEL_LEVEL_TWO</option>
-
 
466
                     <option value="3">LABEL_LEVEL_THREE</option>
-
 
467
                     <option value="4">LABEL_LEVEL_FOUR</option>
-
 
468
                  </select>
-
 
469
               </div>
-
 
470
            </div>
-
 
471
            <div class="modal-footer">
-
 
472
               <button type="button" class="btn btn-primary btn-behavior-submit">LABEL_SAVE</button>
-
 
473
               <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
-
 
474
            </div>
-
 
475
         </div>
-
 
476
      </form>
-
 
477
   </div>
-
 
478
</div>
-
 
479
<!---end modal behavior --->
-
 
480
 
428
 
481
<script id="competenciesTemplate" type="text/x-jsrender">
429
<script id="competenciesTemplate" type="text/x-jsrender">
482
<table class="table table-bordered" id="panel-{{:slug_section}}>  
430
<table class="table table-bordered" id="panel-{{:slug_section}}>  
483
    <thead>
431
    <thead>
484
        <tr>
432
        <tr>
Línea 498... Línea 446...
498
                   <td class="text-left">--LABEL_CONDUCT</td>
446
                   <td class="text-left">--LABEL_CONDUCT</td>
499
                   <td class="text-left">
447
                   <td class="text-left">
500
                      {{:description}}
448
                      {{:description}}
501
                   </td>
449
                   </td>
502
                   <td>
450
                   <td>
503
                        {{if level == '0'}} LABEL_NA {{/if}} 
451
                   <select class="form-control" id="behaviorLevel">
504
                        {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
452
                      <option>$evaluation_0</option>
505
                        {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
453
                      <option>$evaluation_1</option>
506
                        {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
454
                      <option>$evaluation_2</option>
507
                        {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
455
                      <option>$evaluation_3</option>
508
                    </td>
456
                      <option>$evaluation_4</option>
509
                    <td>
-
 
510
                        <button type="button"  class="btn btn-default btn-edit-behavior" data-competency="{{:competency_id}}" data-behavior="{{:behavior_id}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_LEVEL"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_LEVEL</button> 
457
                   </select>
511
                    </td> 
458
                   </td>
512
                </tr>
459
                </tr>
513
                <tr>
460
                <tr>
514
                <td colspan="2">
461
                <td colspan="2">
515
                    <label for="textarea-{{:competency_uuid}}">LABEL_COMMENT</label>
462
                    <label for="textarea-{{:competency_uuid}}">LABEL_COMMENT</label>
516
                    <textarea
463
                    <textarea