amélioration affichage listes des taches
This commit is contained in:
@@ -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
|
||||
]);
|
||||
}
|
||||
|
||||
|
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user