add a shutdown power button to the navbar

This commit is contained in:
Isaac Connor 2019-04-12 09:37:14 -04:00
parent ec6d56fd7e
commit d7747b3385
1 changed files with 3 additions and 1 deletions

View File

@ -324,7 +324,9 @@ if (isset($_REQUEST['filter']['Query']['terms']['attr'])) {
<?php if ( canEdit('System') ) { ?>
<button type="button" class="btn btn-default navbar-btn" data-toggle="modal" data-target="#modalState"><?php echo $status ?></button>
<?php if ( ZM_SYSTEM_SHUTDOWN ) { ?>
<?php echo makePopupLink('?view=shutdown', 'zmShutdown', 'shutdown', '<i class="material-icons md-18">power_settings_new</i></button>' ) ?>
<?php } ?>
<?php } else if ( canView('System') ) { ?>
<p class="navbar-text"> <?php echo $status ?></p>
<?php } ?>