FIX : IHM
This commit is contained in:
parent
409c8c8d57
commit
eccff256b1
@ -324,32 +324,38 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
||||
print '<input type="hidden" name="action" value="saveSkill">';
|
||||
}
|
||||
print '<div class="div-table-responsive-no-min">';
|
||||
print '<table id="tablelines" class="noborder noshadow" width="100%">';
|
||||
print '<table id="tablelines" class="noborder centpercent" width="100%">';
|
||||
print '<tr class="liste_titre">';
|
||||
foreach ($skill->fields as $key => $infos) {
|
||||
if($infos['label'] === 'Rank') $infos['label'] = 'RequiredRank';
|
||||
if ($infos['visible'] > 0) print '<th class="linecol' . $key . '">' . $langs->trans($infos['label']) . '</th>';
|
||||
print '<th>'.$langs->trans('SkillType').'</th>';
|
||||
print '<th>'.$langs->trans('Label').'</th>';
|
||||
print '<th>'.$langs->trans('Description').'</th>';
|
||||
print '<th>'.$langs->trans($objecttype === 'job' ? 'RequiredRank' : 'EmployeeRank').'</th>';
|
||||
if($objecttype === 'job') {
|
||||
print '<th class="linecoledit"></th>';
|
||||
print '<th class="linecoldelete"></th>';
|
||||
}
|
||||
print '<th class="linecoledit"></th>';
|
||||
print '<th class="linecoldelete"></th>';
|
||||
print '</tr>';
|
||||
if (!is_array($TSkills) || empty($TSkills)) {
|
||||
print '<tr><td>' . $langs->trans("NoRecordFound") . '</td></tr>';
|
||||
} else {
|
||||
$sk = new Skill($db);
|
||||
foreach ($TSkills as $skillElement) {
|
||||
print '<tr>';
|
||||
print '<td class="linecolfk_skill">';
|
||||
$sk->fetch($skillElement->fk_skill);
|
||||
print '<tr>';
|
||||
print '<td>';
|
||||
print Skill::typeCodeToLabel($sk->skill_type);
|
||||
print '</td><td class="linecolfk_skill">';
|
||||
print $sk->getNomUrl(1);
|
||||
print '</td>';
|
||||
print '<td class="linecolrank">';
|
||||
print $sk->description;
|
||||
print '<td>';
|
||||
print '</td><td class="linecolrank">';
|
||||
print displayRankInfos($skillElement->rank, $skillElement->fk_skill, 'TNote', $objecttype == 'job' && $permissiontoadd ? 'edit' : 'view');
|
||||
print '</td>';
|
||||
print '<td class="linecoledit"></td>';
|
||||
print '<td class="linecoldelete">';
|
||||
if ($objecttype != 'user' && $permissiontoadd)
|
||||
{
|
||||
print '<td class="linecoledit"></td>';
|
||||
print '<td class="linecoldelete">';
|
||||
print '<a class="reposition" href="' . $_SERVER["PHP_SELF"] . '?id=' . $skillElement->fk_object . '&objecttype=' . $objecttype . '&action=ask_deleteskill&lineid=' . $skillElement->id . '">';
|
||||
print img_delete();
|
||||
print '</a>';
|
||||
|
||||
@ -48,6 +48,7 @@ ValidateEvaluation=Validate evaluation
|
||||
ConfirmValidateEvaluation=Are you sure you want to validate this evaluation with reference <b>%s</b>?
|
||||
EvaluationCard=Evaluation card
|
||||
RequiredRank=Required rank for this job
|
||||
EmployeeRank=Employee rank for this skill
|
||||
Position=Position
|
||||
Positions=Positions
|
||||
PositionCard=Position card
|
||||
|
||||
@ -59,6 +59,7 @@ ValidateEvaluation=Valider évaluation
|
||||
ConfirmValidateEvaluation=Etes vous sûr(e) de vouloir valider cette évaluation sous la référence <b>%s</b>?
|
||||
EvaluationCard=Fiche évaluation
|
||||
RequiredRank=Note requise pour ce métier
|
||||
EmployeeRank=Note employé pour cette compétence
|
||||
PositionCard=Fiche poste
|
||||
EmployeesInThisPosition=Salariés occupant ce poste
|
||||
Position=Poste
|
||||
|
||||
Loading…
Reference in New Issue
Block a user