Add button to make a leave request on the "leave" tab of user.

This commit is contained in:
Laurent Destailleur 2017-10-06 12:36:11 +02:00
parent 06b18a740e
commit 73f5d21ff8

View File

@ -330,6 +330,18 @@ if ($id > 0) // For user tab
}
dol_fiche_end();
print '<div class="tabsAction">';
$canedit=(($user->id == $user_id && $user->rights->holiday->write) || ($user->id != $user_id && $user->rights->holiday->write_all));
// Boutons d'actions
if ($canedit)
{
print '<a href="'.DOL_URL_ROOT.'/holiday/card.php?action=request&fuserid='.$user_id.'" class="butAction">'.$langs->trans("AddCP").'</a>';
}
print '</div>';
}
else
{
@ -348,8 +360,6 @@ else
}*/
}
if ($id > 0) print '<br>';
if ($sall)
{
foreach($fieldstosearchall as $key => $val) $fieldstosearchall[$key]=$langs->trans($val);