fix nav active link on sms stats

This commit is contained in:
osaajani 2024-10-22 22:37:54 +02:00
parent d0e17567c3
commit 44b855dd48
3 changed files with 3 additions and 2 deletions

View File

@ -123,7 +123,7 @@
</li>
<?php } ?>
<?php if (!in_array('stats', json_decode($_SESSION['user']['settings']['hide_menus'], true) ?? [])) { ?>
<li <?php echo $page == 'settings' ? 'class="active"' : ''; ?>>
<li <?php echo $page == 'stats' ? 'class="active"' : ''; ?>>
<a href="<?php echo \descartes\Router::url('Stat', 'sms_status'); ?>"><i class="fa fa-fw fa-area-chart"></i> Statistiques</a>
</li>
<?php } ?>

View File

@ -1025,6 +1025,7 @@
{"id": "events", "name": "Évènements"},
{"id": "commands", "name": "Commandes"},
{"id": "phones", "name": "Téléphones"},
{"id": "stats", "name": "Statistiques"},
{"id": "settings", "name": "Réglages"},
],
valueField: 'id',

View File

@ -5,7 +5,7 @@
?>
<div id="wrapper">
<?php
$this->render('incs/nav', ['page' => 'dashboard'])
$this->render('incs/nav', ['page' => 'stats'])
?>
<div id="page-wrapper">
<div class="container-fluid">