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:
Laurent Destailleur 2022-02-16 20:17:10 +01:00 committed by GitHub
commit b3d71b2a12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -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();

View File

@ -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