amélioration affichage listes des taches

This commit is contained in:
2020-09-29 10:19:41 +02:00
parent 58ac18f005
commit c81d58d399
4 changed files with 42 additions and 12 deletions

View File

@@ -28,12 +28,13 @@ class EventController extends AbstractController
$em = $this->getDoctrine()->getManager();
$users = $em->getRepository("App:User")->findAll();
$tasks = $em->getRepository("App:Task")->findAll();
$projects= $em->getRepository("App:Project")->findBy(["active"=>true]);
return $this->render($this->render.'list.html.twig',[
"useheader" => true,
"usesidebar" => true,
"users" => $users,
"tasks" => $tasks
"projects" => $projects
]);
}

View File

@@ -23,14 +23,14 @@ class TimerController extends AbstractController
$iduser = $this->get("session")->get("iduser");
$user = $em->getRepository("App:User")->find($iduser);
$tasks = $em->getRepository("App:Task")->findAll();
$projects= $em->getRepository("App:Project")->findBy(["active"=>true]);
$timers = $em->getRepository("App:Timer")->findBy(["user"=>$iduser]);
return $this->render($this->render.'list.html.twig',[
"useheader" => true,
"usesidebar" => true,
"user" => $user,
"tasks" => $tasks,
"projects" => $projects,
"timers" => $timers,
]);
}