diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php
index 8512b306499..5aa665e4ffd 100644
--- a/htdocs/projet/tasks/time.php
+++ b/htdocs/projet/tasks/time.php
@@ -33,9 +33,15 @@ if (!$user->rights->projet->lire) accessforbidden();
/*
* Actions
*/
+if ($_POST["action"] == 'updateline' && ! $_POST["cancel"] && $user->rights->projet->creer)
+{
+
+}
-
-
+if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes" && $user->rights->projet->creer)
+{
+
+}
/*
@@ -69,6 +75,12 @@ if ($_GET["id"] > 0)
dol_fiche_head($head, 'time', $langs->trans("Task"),0,'projecttask');
if ($mesg) print $mesg.'
';
+
+ if ($_GET["action"] == 'deleteline')
+ {
+ $ret=$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"],$langs->trans("DeleteATimeSpent"),$langs->trans("ConfirmDeleteATimeSpent"),"confirm_delete",'','',1);
+ if ($ret == 'html') print '
';
+ }
print '
| '.$heure." h ".$minutes." | \n"; - // Icon update et delete - print ''; + // Edit and delete icon + print ' | '; if ($user->rights->projet->creer && $userAccess) { + print ' '; + print 'id.'&action=editline&lineid='.$task_time->rowid.'">'; + print img_edit(); + print ''; + print ' '; print 'id.'&action=deleteline&lineid='.$task_time->rowid.'">'; print img_delete(); |