From 9fc84a85e9a0e7ac698fd70f64a960341a5b8ec8 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 17 Dec 2024 11:50:32 -0500 Subject: [PATCH] Convert to use NavList::PRESENT_LINK constant --- src/Controller/AdminController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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())