Línea 380... |
Línea 380... |
380 |
s = '<tr>' +
|
380 |
s = '<tr>' +
|
381 |
'<td><big><b>' + rowCompetencyType['name'] + '</b></big></td>' +
|
381 |
'<td><big><b>' + rowCompetencyType['name'] + '</b></big></td>' +
|
382 |
'</tr>';
|
382 |
'</tr>';
|
383 |
$('#tableCompetencies tbody').append(s)
|
383 |
$('#tableCompetencies tbody').append(s)
|
384 |
}
|
384 |
}
|
- |
|
385 |
|
- |
|
386 |
checked = '';
|
- |
|
387 |
if ($.isArray(response['data']['competencies'])) {
|
- |
|
388 |
if ($.inArray(rowCompetency['competency_id'], response['data']['competencies']) != -1) {
|
- |
|
389 |
checked = ' checked="checked" ';
|
- |
|
390 |
}
|
- |
|
391 |
}
|
- |
|
392 |
|
385 |
s = '<tr>' +
|
393 |
s = '<tr>' +
|
386 |
'<td> ' +
|
394 |
'<td> ' +
|
387 |
'<div class="custom-control custom-checkbox">' +
|
395 |
'<div class="custom-control custom-checkbox">' +
|
388 |
'<input class="custom-control-input" type="checkbox" ' + checked + ' name="competency_level' + rowCompetency['competency_id'] + '" id="competency_level' + rowCompetency['competency_id'] + '" value="1">' +
|
396 |
'<input class="custom-control-input" type="checkbox" ' + checked + ' name="competency_level' + rowCompetency['competency_id'] + '" id="competency_level' + rowCompetency['competency_id'] + '" value="1">' +
|
389 |
'<label for="competency_level' + rowCompetency['competency_id'] + '" class="custom-control-label">' + rowCompetency['name'] + '</label>' +
|
397 |
'<label for="competency_level' + rowCompetency['competency_id'] + '" class="custom-control-label">' + rowCompetency['name'] + '</label>' +
|