|
6 | 6 | <a href="/list/ip/" class="ui-button cancel" title="<?=__('IP')?>"><i class="fas fa-ethernet status-icon blue"></i> <?=__('IP')?></a> |
7 | 7 | <?php if ((isset($_SESSION['FIREWALL_SYSTEM'])) && (!empty($_SESSION['FIREWALL_SYSTEM']))) {?><a href="/list/firewall/" class="ui-button cancel" title="<?=__('Firewall')?>"><i class="fas fa-shield-alt status-icon red"></i> <?=__('Firewall')?></a><?php }?> |
8 | 8 | <a href="/list/updates/" class="ui-button cancel" title="<?=__('Updates')?>"><i class="fas fa-sync status-icon green"></i> <?=__('Updates')?></a> |
9 | | - <a href="/restart/system/?hostname=<?php echo $sys['sysinfo']['HOSTNAME'] ?>&token=<?=$_SESSION['token']?>" class="ui-button danger cancel" title="<?=__('Restart')?>"><i class="fas fa-undo status-icon red"></i> <?=__('Restart')?></a> |
| 9 | + <div class="actions-panel display-inline-block" key-action="js"> |
| 10 | + <a class="data-controls do_servicerestart ui-button danger cancel" title="<?=__('Restart')?>"> |
| 11 | + <i class="do_servicerestart fas fa-undo status-icon red"></i> |
| 12 | + <?=__('Restart')?> |
| 13 | + <input type="hidden" name="servicerestart_url" value="/restart/system/?hostname=<?php echo $sys['sysinfo']['HOSTNAME'] ?>&token=<?=$_SESSION['token']?>" /> |
| 14 | + <div class="confirmation-text-servicerestart hidden" title="<?=__('Confirmation')?>"> |
| 15 | + <p class="confirmation"><?=__('RESTART_CONFIRMATION', 'Server')?></p> |
| 16 | + </div> |
| 17 | + </a> |
| 18 | + </div> |
10 | 19 | </div> |
11 | 20 | <div class="l-sort-toolbar clearfix"> |
12 | 21 | <table> |
|
106 | 115 | </div> |
107 | 116 | <div class="clearfix l-unit__stat-col--left wide-2"><b><a href="/edit/server/<? echo $key ?>/" title="<?=__('edit')?>"><?=$key?></a></b></div> |
108 | 117 | <div class="clearfix l-unit__stat-col--left text-center compact-2"> |
| 118 | + <div class="actions-panel clearfix"> |
109 | 119 | <div class="actions-panel__col actions-panel__edit shortcut-enter" key-action="href"> |
110 | 120 | <a href="/edit/server/<? echo $key ?>/" title="<?=__('edit')?>"><i class="fas fa-pencil-alt status-icon orange status-icon dim icon-large"></i></a> |
111 | 121 | </div> |
112 | | - <a href="/restart/service/?srv=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=__('restart')?>"><i class="data-controls fas fa-undo status-icon highlight status-icon dim icon-large"></i></a> |
113 | | - <a href="/<?php echo $action ?>/service/?srv=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=__($action)?>"><i class="fas fa-pause status-icon red status-icon dim icon-large"></i></a> |
| 122 | + <div class="actions-panel__col actions-panel__stop shortcut-s" key-action="js"> |
| 123 | + <a id="<?=$spnd_action ?>_link_<?=$i?>" class="data-controls do_servicerestart" title="<?=__('restart')?>"> |
| 124 | + <i class="do_servicerestart data-controls fas fa-undo status-icon highlight status-icon dim icon-large"></i> |
| 125 | + <input type="hidden" name="servicerestart_url" value="/restart/service/?srv=<?=$key?>&token=<?=$_SESSION['token']?>" /> |
| 126 | + <div id="<?=$spnd_action?>_dialog_<?=$i?>" class="confirmation-text-servicerestart hidden" title="<?=__('Confirmation')?>"> |
| 127 | + <p class="confirmation"><?=__('RESTART_CONFIRMATION',$key)?></p> |
| 128 | + </div> |
| 129 | + </a> |
| 130 | + </div> |
| 131 | + <div class="actions-panel__col actions-panel__delete shortcut-delete" key-action="js"> |
| 132 | + <a id="delete_link_<?=$i?>" class="data-controls do_servicestop" title="<?=__($action)?>"> |
| 133 | + <i class="do_servicestop fas fa-pause status-icon red status-icon dim icon-large"></i> |
| 134 | + <input type="hidden" name="servicestop_url" value="/<?php echo $action ?>/service/?srv=<?=$key?>&token=<?=$_SESSION['token']?>" /> |
| 135 | + <div id="delete_dialog_<?=$i?>" class="confirmation-text-servicestop hidden" title="<?=__('Confirmation')?>"> |
| 136 | + <p class="confirmation"><?=__('Are you sure you want to stop service',$key)?></p> |
| 137 | + </div> |
| 138 | + </a> |
| 139 | + </div> |
114 | 140 | </div> |
| 141 | + </div> |
115 | 142 | <div class="clearfix l-unit__stat-col--left wide-3"><?=__($data[$key]['SYSTEM'])?></div> |
116 | 143 | <div class="clearfix l-unit__stat-col--left text-center"><b><?=humanize_time($data[$key]['RTIME'])?></b></div> |
117 | 144 | <div class="clearfix l-unit__stat-col--left text-center"><b><?=$cpu?></b></div> |
|
0 commit comments