fix nav active link on sms stats
This commit is contained in:
parent
d0e17567c3
commit
44b855dd48
|
@ -123,7 +123,7 @@
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if (!in_array('stats', json_decode($_SESSION['user']['settings']['hide_menus'], true) ?? [])) { ?>
|
<?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>
|
<a href="<?php echo \descartes\Router::url('Stat', 'sms_status'); ?>"><i class="fa fa-fw fa-area-chart"></i> Statistiques</a>
|
||||||
</li>
|
</li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
|
@ -1025,6 +1025,7 @@
|
||||||
{"id": "events", "name": "Évènements"},
|
{"id": "events", "name": "Évènements"},
|
||||||
{"id": "commands", "name": "Commandes"},
|
{"id": "commands", "name": "Commandes"},
|
||||||
{"id": "phones", "name": "Téléphones"},
|
{"id": "phones", "name": "Téléphones"},
|
||||||
|
{"id": "stats", "name": "Statistiques"},
|
||||||
{"id": "settings", "name": "Réglages"},
|
{"id": "settings", "name": "Réglages"},
|
||||||
],
|
],
|
||||||
valueField: 'id',
|
valueField: 'id',
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
?>
|
?>
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<?php
|
<?php
|
||||||
$this->render('incs/nav', ['page' => 'dashboard'])
|
$this->render('incs/nav', ['page' => 'stats'])
|
||||||
?>
|
?>
|
||||||
<div id="page-wrapper">
|
<div id="page-wrapper">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
Loading…
Reference in New Issue