From 73f5d21ff84273ab1bacb75eb686efe1b4006852 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 6 Oct 2017 12:36:11 +0200 Subject: [PATCH] Add button to make a leave request on the "leave" tab of user. --- htdocs/holiday/list.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php index e4c5437028b..f25dcb9e227 100644 --- a/htdocs/holiday/list.php +++ b/htdocs/holiday/list.php @@ -330,6 +330,18 @@ if ($id > 0) // For user tab } dol_fiche_end(); + + print '
'; + + $canedit=(($user->id == $user_id && $user->rights->holiday->write) || ($user->id != $user_id && $user->rights->holiday->write_all)); + + // Boutons d'actions + if ($canedit) + { + print ''.$langs->trans("AddCP").''; + } + + print '
'; } else { @@ -348,8 +360,6 @@ else }*/ } -if ($id > 0) print '
'; - if ($sall) { foreach($fieldstosearchall as $key => $val) $fieldstosearchall[$key]=$langs->trans($val);