Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 1 | <div id="power-operations"> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 2 | |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 3 | <div class="row column"> |
Michael Davis | e126be7 | 2017-05-08 11:20:12 -0500 | [diff] [blame] | 4 | <h1>Server power operations</h1> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 5 | </div> |
| 6 | |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 7 | <div class="row column"> |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 8 | <div class="power__current-status "> |
Michael Davis | 5d01469 | 2017-03-02 13:37:40 -0600 | [diff] [blame] | 9 | <h2 class="inline h4">Current status</h2> |
Michael Davis | 8819b7a | 2017-08-02 16:16:18 -0500 | [diff] [blame] | 10 | <div class="power__status-log inline float-right">Last power operation at <span class="courier-bold">{{dataService.last_updated |date:'h:mm:ss on MMM dd yyyy'}}</span></div> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 11 | </div> |
| 12 | </div> |
| 13 | <div class="row column"> |
Iftekharul Islam | ccfe245 | 2017-03-16 10:47:04 -0500 | [diff] [blame] | 14 | <div id="power-indicator-bar" class="power__indicator-bar" ng-class="{'power__state-on': dataService.server_state == 'Running', 'power__state-off': dataService.server_state == 'Off', 'power__state-indet': dataService.server_state == 'Quiesced'}"> |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 15 | <p class="inline">{{dataService.server_id}}</p> |
Michael Davis | 7f89fad | 2017-07-31 18:36:45 -0500 | [diff] [blame] | 16 | <h3 class="power__state inline no-margin h3"><span>{{dataService.server_state}}</span></h3> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 17 | </div> |
| 18 | </div> |
| 19 | <div class="row column"> |
| 20 | <div class="row column"> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 21 | <h3 class="h4 subhead">Select a power operation</h3> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 22 | </div> |
| 23 | |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 24 | <!-- Power on displays only when server is shutdown --> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 25 | <div class="row column power-option" ng-hide="dataService.server_state == 'Running' || dataService.server_state == 'Quiesced'" ng-class="{disabled: dataService.server_unreachable || (confirm && !power_confirm) || dataService.loading, transitionAll: confirm && power_confirm}"> |
Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 26 | <button id="power__power-on" class="btn-secondary inline" ng-click="togglePower()" role="button" ng-disabled="dataService.server_unreachable"><img src="assets/images/icon-power.svg" alt="power on">Power on</button> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 27 | <p class="inline">Attempts to power on the server</p> |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 28 | |
Iftekharul Islam | ccfe245 | 2017-03-16 10:47:04 -0500 | [diff] [blame] | 29 | <!---<confirm title="power off" message="Power off the server" confirm="power_confirm" ng-show="power_confirm" callback="togglePower"></confirm>--> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 30 | </div> |
| 31 | |
Michael Davis | 0f03ad1 | 2017-02-27 16:54:18 -0600 | [diff] [blame] | 32 | <!-- Power reboot/shutdown options : when server is off all of these are hidden. When one option is selected, the others are disabled. --> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 33 | <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !warmboot_confirm) || dataService.loading, transitionAll: confirm && warmboot_confirm}"> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 34 | <button id="power__warm-boot" class="btn-secondary inline" ng-click="warmRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"><i>↻</i> Warm reboot</button> |
| 35 | <p class="inline">Attempts to perform an orderly shutdown before restarting the server</p> |
Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 36 | <confirm title="Warm Reboot" confirm="warmboot_confirm" ng-show="warmboot_confirm" callback="warmReboot"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 37 | </div> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 38 | <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !coldboot_confirm) || dataService.loading, transitionAll: confirm && coldboot_confirm}"> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 39 | <button id="power__cold-boot" class="btn-secondary inline" ng-click="coldRebootConfirm()" role="button" ng-disabled="dataService.server_unreachable"><i>↻</i> Cold reboot</button> |
| 40 | <p class="inline">Shuts down the server immediately, then restarts it</p> |
Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 41 | <confirm title="Cold Reboot" confirm="coldboot_confirm" ng-show="coldboot_confirm" cancel="coldbootCancel" callback="coldReboot"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 42 | </div> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 43 | <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !orderly_confirm) || dataService.loading, transitionAll: confirm && orderly_confirm}"> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 44 | <button id="power__soft-shutdown" class="btn-secondary inline" ng-click="orderlyShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"><img src="assets/images/icon-power.svg" />Orderly shutdown</button> |
| 45 | <p class="inline">Attempts to stop all software on the server before removing power</p> |
Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 46 | <confirm title="Orderly shutdown" confirm="orderly_confirm" ng-show="orderly_confirm" cancel="orderlyShutdownCancel" callback="orderlyShutdown"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 47 | </div> |
Iftekharul Islam | cd78950 | 2017-04-19 14:37:55 -0500 | [diff] [blame] | 48 | <div class="row column power-option" ng-hide="dataService.server_state == 'Off'" ng-class="{disabled: dataService.server_unreachable || (confirm && !immediately_confirm) || dataService.loading, transitionAll: confirm && immediately_confirm}"> |
Michael Davis | 46f0a1f | 2017-07-13 11:23:16 -0500 | [diff] [blame] | 49 | <button id="power__hard-shutdown" class="btn-secondary inline" ng-click="immediateShutdownConfirm()" role="button" ng-disabled="dataService.server_unreachable"><img src="assets/images/icon-power.svg" />Immediate shutdown</button> |
| 50 | <p class="inline">Removes power from the server without waiting for software to stop</p> |
Michael Davis | 68f929d | 2017-07-27 15:33:59 -0500 | [diff] [blame] | 51 | <confirm title="Immediate shutdown" confirm="immediately_confirm" ng-show="immediately_confirm" cancel="immediatelyShutdownCancel" callback="immediateShutdown"></confirm> |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 52 | </div> |
| 53 | </div> |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 54 | </div> |