Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 2508 Rev 2509
Línea 285... Línea 285...
285
    
285
    
286
    $('#form-filter #candidates_uuid').change(function(e) {
286
    $('#form-filter #candidates_uuid').change(function(e) {
287
        e.preventDefault();
287
        e.preventDefault();
Línea -... Línea 288...
-
 
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
        }
288
    })
319
    });
289
 
320
 
Línea 290... Línea 321...
290
    $('#vacancy_uuid').on('change', function () {
321
    $('#vacancy_uuid').on('change', function () {
291
        $('#candidate_uuid').html('');
322
        $('#candidate_uuid').html('');
Línea 410... Línea 441...
410
            </div>
441
            </div>
411
        </div>
442
        </div>
412
 	</div>
443
 	</div>
413
</section>
444
</section>
Línea -... Línea 445...
-
 
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 --->
414
 
480
 
415
<script id="competenciesTemplate" type="text/x-jsrender">
481
<script id="competenciesTemplate" type="text/x-jsrender">
416
<table class="table table-bordered" id="panel-{{:slug_section}}>  
482
<table class="table table-bordered" id="panel-{{:slug_section}}>  
417
    <thead>
483
    <thead>
418
        <tr>
484
        <tr>