Skip to content

Commit

Permalink
Add button to make a leave request on the "leave" tab of user.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 6, 2017
1 parent 06b18a7 commit 73f5d21
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions htdocs/holiday/list.php
Expand Up @@ -330,6 +330,18 @@
}

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
{
Expand All @@ -348,8 +360,6 @@
}*/
}

if ($id > 0) print '<br>';

if ($sall)
{
foreach($fieldstosearchall as $key => $val) $fieldstosearchall[$key]=$langs->trans($val);
Expand Down

0 comments on commit 73f5d21

Please sign in to comment.