Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 937 Rev 938
Línea 47... Línea 47...
47
 
47
 
Línea 48... Línea 48...
48
$status_active = JobDescription::STATUS_ACTIVE;
48
$status_active = JobDescription::STATUS_ACTIVE;
49
 
49
 
50
$this->inlineScript()->captureStart();
50
$this->inlineScript()->captureStart();
51
echo <<<JS
51
echo <<<JS
52
   jQuery(document).ready(function($) {
52
jQuery(document).ready(function($) {
53
    $.validator.setDefaults({
53
    $.validator.setDefaults({
54
        debug: true,
54
        debug: true,
55
        highlight: function(element) {
55
        highlight: function(element) {
Línea 304... Línea 304...
304
                        if (rowCompetencyType['competency_type_id'] == rowCompetency['competency_type_id']) {
304
                        if (rowCompetencyType['competency_type_id'] == rowCompetency['competency_type_id']) {
305
                            if (first) {
305
                            if (first) {
306
                                first = false;
306
                                first = false;
307
                                s = '<tr>' +
307
                                s = '<tr>' +
308
                                    '<td><big><b>' + rowCompetencyType['name'] + '</b></big></td>' +
308
                                    '<td><big><b>' + rowCompetencyType['name'] + '</b></big></td>' +
309
                                    '<td><big><b>LABEL_LEVEL</b></big></td>' +
-
 
310
                                    '</tr>';
309
                                    '</tr>';
311
                                $('#tableCompetencies tbody').append(s)
310
                                $('#tableCompetencies tbody').append(s)
312
                            }
311
                            }
-
 
312
                            checked = '';
-
 
313
                            if (rowCompetency['level'] != 0) {
-
 
314
                                checked = ' checked="checked" ';
-
 
315
                            }
313
                            s = '<tr>' +
316
                            s = '<tr>' +
314
                                '<td>' + rowCompetency['name'] + '</td>' +
317
                                '<td> ' +
315
                                '<td>' +
318
                                '<div class="custom-control custom-checkbox">' +
316
                                '<select class="form-control" id="competency_level' + rowCompetency['competency_id'] + '" name="competency_level' + rowCompetency['competency_id'] + '">' +
319
                                '<input class="custom-control-input" type="checkbox" ' + checked + ' name="competency_level' + rowCompetency['competency_id'] + '" id="competency_level' + rowCompetency['competency_id'] + '" value="1">' +
317
                                '<option value="0">LABEL_NA</option>' +
-
 
318
                                '<option value="1">LABEL_LEVEL_ONE</option>' +
-
 
319
                                '<option value="2">LABEL_LEVEL_TWO</option>' +
-
 
320
                                '<option value="3">LABEL_LEVEL_THREE</option>' +
320
                                '<label for="competency_level' + rowCompetency['competency_id'] + '" class="custom-control-label">' + rowCompetency['name'] + '</label>' +
321
                                '<option value="4">LABEL_LEVEL_FOUR</option>' +
-
 
322
                                '</td>' +
321
                                '</div>' +
323
                                '</tr>';
322
                                '<td>';
324
                            $('#tableCompetencies tbody').append(s)
323
                            $('#tableCompetencies tbody').append(s)
325
                        }
324
                        }
326
                    });
325
                    });
327
                });
326
                });
328
                $('#tableSubordinates tbody').empty();
327
                $('#tableSubordinates tbody').empty();
Línea 380... Línea 379...
380
                                s = '<tr>' +
379
                                s = '<tr>' +
381
                                    '<td><big><b>' + rowCompetencyType['name'] + '</b></big></td>' +
380
                                    '<td><big><b>' + rowCompetencyType['name'] + '</b></big></td>' +
382
                                    '</tr>';
381
                                    '</tr>';
383
                                $('#tableCompetencies tbody').append(s)
382
                                $('#tableCompetencies tbody').append(s)
384
                            }
383
                            }
385
 
-
 
386
                            checked = '';
384
                            checked = '';
387
                
-
 
388
                        if (rowCompetency['level'] != 0) {
385
                            if (rowCompetency['level'] != 0) {
389
                            checked = ' checked="checked" ';
386
                                checked = ' checked="checked" ';
390
                        }
387
                            }
391
                    
-
 
392
 
-
 
393
                            s = '<tr>' +
388
                            s = '<tr>' +
394
                                '<td> ' +
389
                                '<td> ' +
395
                                '<div class="custom-control custom-checkbox">' +
390
                                '<div class="custom-control custom-checkbox">' +
396
                                '<input class="custom-control-input" type="checkbox" ' + checked + ' name="competency_level' + rowCompetency['competency_id'] + '" id="competency_level' + rowCompetency['competency_id'] + '" value="1">' +
391
                                '<input class="custom-control-input" type="checkbox" ' + checked + ' name="competency_level' + rowCompetency['competency_id'] + '" id="competency_level' + rowCompetency['competency_id'] + '" value="1">' +
397
                                '<label for="competency_level' + rowCompetency['competency_id'] + '" class="custom-control-label">' + rowCompetency['name'] + '</label>' +
392
                                '<label for="competency_level' + rowCompetency['competency_id'] + '" class="custom-control-label">' + rowCompetency['name'] + '</label>' +
Línea 475... Línea 470...
475
});
470
});
476
JS;
471
JS;
477
$this->inlineScript()->captureEnd();
472
$this->inlineScript()->captureEnd();
478
?>
473
?>
Línea 479... Línea -...
479
 
-
 
480
		
474
 
481
		
-
 
482
			
-
 
483
 
-
 
484
			
475
	
485
<!-- Content Header (Page header) -->
476
<!-- Content Header (Page header) -->
486
<section class="content-header">
477
<section class="content-header">
487
	<div class="container-fluid">
478
	<div class="container-fluid">
488
    	<div class="row mb-2">
479
    	<div class="row mb-2">