blob: 62ca3dae43521c72741ac3f18cb6b7914f7d2423 [file] [log] [blame]
Gunnar Mills52b8bde2018-06-21 13:16:54 -05001<loader loading="loading"></loader>
2<div id="power-usage">
Gunnar Mills5f0b7762018-09-25 14:10:45 -05003 <div class="row column">
4 <h1>Manage Power Usage</h1>
5 </div>
6 <form class="power-usage__form" role="form" action="">
7 <section class="row column">
8 <div class="page-header">
beccabroekedf1ab42019-02-15 16:26:38 -06009 <h2 class="bold">Power information</h2>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050010 </div>
11 <fieldset>
12 <ul class="power-usage__metadata-wrapper">
13 <li class="power-usage__metadata-block">
14 <p class="content-label">Power Consumption</p>
15 <p class="courier-bold">{{power_consumption}}</p>
16 </li>
17 <li class="power-usage__metadata-block">
18 <div class="toggle inline">
19 <input id="toggle__switch-round"
20 class="toggle-switch toggle-switch__round-flat"
21 type="checkbox"
22 tabindex="0"
23 ng-model="power_cap.PowerCapEnable"
24 ng-checked="power_cap.PowerCapEnable">
25 <label for="toggle__switch-round" tabindex="0">Server power cap setting is <span class="uid-switch__status">{{power_cap.PowerCapEnable ? "on" : "off"}}</span></label>
26 </div>
27 <div class="power-usage__switch-label inline">
28 <p>Server power cap setting is <span class="uid-switch__status">{{power_cap.PowerCapEnable ? "on" : "off"}}</span></p>
29 <p>Set a power cap to keep power consumption at or below the specified value in watts.</p>
30 </div>
31 <div class="small-12 large-4">
Derick Montague1ffa2092019-04-01 17:57:27 -050032 <label for="power-cap" class="content-label power-cap-value-label">POWER CAP VALUE IN WATTS</label>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050033 <input id="power-cap" type="number" min="100" max="10000" step="1" ng-disabled="!power_cap.PowerCapEnable" ng-model="power_cap.PowerCap"/>
34 </div>
35 </li>
36 </ul>
37 </fieldset>
38 <div class="power-usage__submit-wrapper">
39 <button type="button" class="btn-primary inline" ng-click="setPowerCap()">Save settings</button>
40 <button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button>
41 </div>
Gunnar Mills5f0b7762018-09-25 14:10:45 -050042 </section>
43 </form>
Gunnar Mills52b8bde2018-06-21 13:16:54 -050044</div>
45