controller and templates adapted to display list of accompanying period tasks + detailpage of task

This commit is contained in:
2021-09-16 15:55:09 +02:00
parent b1dbd8b011
commit a156bd0863
8 changed files with 423 additions and 202 deletions

View File

@@ -89,10 +89,12 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
//var $person \Chill\PersonBundle\Entity\Person */
$course = $parameters['accompanyingCourse'];
//TODO: implement voter again?
// if ($this->authorizationChecker->isGranted(TaskVoter::SHOW, $course)) {
$menu->addChild(
$this->translator->trans('Tasks'), [
'route' => 'chill_task_singletask_list',
'route' => 'chill_task_singletask_courselist',
'routeParameters' =>
[ 'course_id' => $course->getId() ]
])