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