Compare commits

..

2 Commits

Author SHA1 Message Date
8825f5fc36 Move files and add list-cases route method 2024-11-30 22:12:33 -05:00
4403f65b74 Move files 2024-11-30 22:10:26 -05:00
4 changed files with 22 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class AdminController extends AbstractController
$this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark';
return $this->render(
'internal/admin/list-users.html.twig',
'internal/admin/users/list-users.html.twig',
array_merge(
$this->navLinks,
[
@ -126,7 +126,7 @@ class AdminController extends AbstractController
$this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark';
return $this->render(
'internal/admin/add-user.html.twig',
'internal/admin/users/add-user.html.twig',
array_merge(
$this->navLinks,
[
@ -169,7 +169,7 @@ class AdminController extends AbstractController
}
return $this->render(
'internal/admin/edit-user.html.twig',
'internal/admin/users/edit-user.html.twig',
array_merge(
$this->navLinks,
[
@ -225,4 +225,23 @@ class AdminController extends AbstractController
)
);
}
#[Route('/list-cases', name: 'app_list_cases')]
public function listCases(#[CurrentUser()] User $user): Response
{
$this->denyAccessUnlessGranted('ROLE_ADMIN');
return $this->render(
'internal/cases/case-list.html.twig',
array_merge(
$this->navLinks,
[
'breadcrumbs' => [
'List Cases'
],
'notifications' => $user->retrieveUnreadNotifications(),
]
)
);
}
}