Keep contacts side nav active when viewing client contact details for easier navigation

This commit is contained in:
johnnyq 2023-01-10 21:54:53 -05:00
parent 0388d1e934
commit 243da47dd0
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
</li>
<li class="nav-item">
<a href="client_contacts.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if(basename($_SERVER["PHP_SELF"]) == "client_contacts.php") { echo "active"; } ?>">
<a href="client_contacts.php?client_id=<?php echo $client_id; ?>" class="nav-link <?php if(basename($_SERVER["PHP_SELF"]) == "client_contacts.php" || basename($_SERVER["PHP_SELF"]) == "client_contact_details.php") { echo "active"; } ?>">
<i class="nav-icon fas fa-users"></i>
<p>
Contacts