Merge pull request #20087 from ATM-Consulting/FIX_job_card_button_add_event
FIX : HRM | Change button and add title on job card
This commit is contained in:
commit
b3d71b2a12
@ -189,18 +189,13 @@ if ($object->id > 0) {
|
||||
}
|
||||
|
||||
|
||||
print '<div class="tabsAction">';
|
||||
|
||||
if (!empty($conf->agenda->enabled)) {
|
||||
if (!empty($user->rights->agenda->myactions->create) || !empty($user->rights->agenda->allactions->create)) {
|
||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out.'">'.$langs->trans("AddAction").'</a>';
|
||||
} else {
|
||||
print '<a class="butActionRefused classfortooltip" href="#">'.$langs->trans("AddAction").'</a>';
|
||||
}
|
||||
$newcardbutton = '';
|
||||
$newcardbutton .= dolGetButtonTitle($langs->trans('AddAction'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/comm/action/card.php?action=create'.$out);
|
||||
}
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
|
||||
if (!empty($conf->agenda->enabled) && (!empty($user->rights->agenda->myactions->read) || !empty($user->rights->agenda->allactions->read))) {
|
||||
$param = '&id='.$object->id.'&socid='.$socid;
|
||||
if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
|
||||
@ -211,7 +206,7 @@ if ($object->id > 0) {
|
||||
}
|
||||
|
||||
|
||||
//print load_fiche_titre($langs->trans("ActionsOnJob"), '', '');
|
||||
print load_fiche_titre($langs->trans("ActionsOnJob"), $newcardbutton, '');
|
||||
|
||||
// List of all actions
|
||||
$filters = array();
|
||||
|
||||
@ -79,3 +79,4 @@ NoEval=Aucune évaluation effectuée pour cet employé
|
||||
HowManyUserWithThisMaxNote=Nombre d'employés avec ce niveau
|
||||
HighestRank=Plus haut niveau
|
||||
SkillComparison=Comparaison des compétences
|
||||
ActionsOnJob=Événements sur cet emploi
|
||||
Loading…
Reference in New Issue
Block a user