Convert to use NavList::PRESENT_LINK constant
This commit is contained in:
parent
0ca406f635
commit
9fc84a85e9
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user