diff --git a/src/Controller/AdminController.php b/src/Controller/AdminController.php index 358b758..5895196 100644 --- a/src/Controller/AdminController.php +++ b/src/Controller/AdminController.php @@ -34,7 +34,7 @@ class AdminController extends AbstractController public function adminDashboard(#[CurrentUser()] User $user): Response { $this->denyAccessUnlessGranted('ROLE_ADMIN'); - $this->navLinks['admin_dashboard'] = 'nav-link text-white active bg-gradient-dark'; + $this->navLinks['admin_dashboard'] = NavList::PRESENT_LINK; return $this->render( 'internal/admin/admin-dashboard.html.twig', @@ -66,7 +66,7 @@ class AdminController extends AbstractController $users[$idx]->setSupervisor($supervisor); } - $this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark'; + $this->navLinks['user_list'] = NavList::PRESENT_LINK; return $this->render( 'internal/admin/users/list-users.html.twig', @@ -136,7 +136,7 @@ class AdminController extends AbstractController return $this->redirectToRoute('app_list_users'); } - $this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark'; + $this->navLinks['user_list'] = NavList::PRESENT_LINK; return $this->render( 'internal/admin/users/add-user.html.twig', @@ -166,7 +166,7 @@ class AdminController extends AbstractController $form = $this->createForm(EditUserFormType::class, $user); $form->handleRequest($request); - $this->navLinks['user_list'] = 'nav-link text-white active bg-gradient-dark'; + $this->navLinks['user_list'] = NavList::PRESENT_LINK; if ($form->isSubmitted() && $form->isValid()) { $user->setName($form->get('name')->getData())