fix nav active link on sms stats
This commit is contained in:
parent
d0e17567c3
commit
44b855dd48
|
@ -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 } ?>
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue