152b8bde9SGunnar Mills<loader loading="loading"></loader>
252b8bde9SGunnar Mills<div id="power-usage">
352b8bde9SGunnar Mills	<div class="row column">
452b8bde9SGunnar Mills		<h1>Manage Power Usage</h1>
552b8bde9SGunnar Mills	</div>
6*006aaa0fSGunnar Mills	<form class="power-usage__form" role="form" action="">
7*006aaa0fSGunnar Mills		<section class="row column">
852b8bde9SGunnar Mills			<div class="page-header">
952b8bde9SGunnar Mills				<h2 class="bold h4">Power information</h2>
1052b8bde9SGunnar Mills			</div>
1152b8bde9SGunnar Mills			<fieldset>
12*006aaa0fSGunnar Mills					<ul class="power-usage__metadata-wrapper">
13*006aaa0fSGunnar Mills						<li class="power-usage__metadata-block">
1452b8bde9SGunnar Mills							<p class="content-label">Power Consumption</p>
1552b8bde9SGunnar Mills							<p class="courier-bold">{{power_consumption}}</p>
1652b8bde9SGunnar Mills						</li>
17*006aaa0fSGunnar Mills						<li class="power-usage__metadata-block">
18*006aaa0fSGunnar Mills							<div class="toggle inline">
19*006aaa0fSGunnar Mills								<input id="toggle__switch-round"
20*006aaa0fSGunnar Mills												class="toggle-switch toggle-switch__round-flat"
21*006aaa0fSGunnar Mills												type="checkbox"
22*006aaa0fSGunnar Mills												tabindex="0"
23*006aaa0fSGunnar Mills												ng-model="power_cap.PowerCapEnable"
24*006aaa0fSGunnar Mills												ng-checked="power_cap.PowerCapEnable">
25*006aaa0fSGunnar Mills								<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*006aaa0fSGunnar Mills							</div>
27*006aaa0fSGunnar Mills							<div class="power-usage__switch-label inline">
28*006aaa0fSGunnar Mills								<p>Server power cap setting is <span class="uid-switch__status">{{power_cap.PowerCapEnable ? "on" : "off"}}</span></p>
29*006aaa0fSGunnar Mills								<p>Set a power cap to keep power consumption at or below the specified value in watts.</p>
30*006aaa0fSGunnar Mills							</div>
31*006aaa0fSGunnar Mills							<div class="small-12 large-4">
32*006aaa0fSGunnar Mills								<p class="content-label power-cap-value-label">POWER CAP VALUE IN WATTS</p>
33*006aaa0fSGunnar Mills								<input id="power-cap" type="number" min="100" max="10000" step="1" ng-disabled="!power_cap.PowerCapEnable"  ng-model="power_cap.PowerCap"/>
34*006aaa0fSGunnar Mills							</div>
35*006aaa0fSGunnar Mills						</li>
3652b8bde9SGunnar Mills					</ul>
3752b8bde9SGunnar Mills			</fieldset>
38*006aaa0fSGunnar Mills			<div class="power-usage__submit-wrapper">
39*006aaa0fSGunnar Mills				<button type="button" class="btn-primary inline" ng-click="setPowerCap()">Save settings</button>
40*006aaa0fSGunnar Mills				<button type="button" class="btn-secondary inline" ng-click="refresh()">Cancel</button>
4152b8bde9SGunnar Mills			</div>
42*006aaa0fSGunnar Mills			<p class="success-msg" ng-show="set_power_cap_success" role="alert">Success! Power cap changed!</p>
43*006aaa0fSGunnar Mills			<p class="set_powercap_error error-msg" ng-show="set_power_cap_error" role="alert">Error setting Power Cap!</p>
44*006aaa0fSGunnar Mills		</section>
45*006aaa0fSGunnar Mills	</form>
4652b8bde9SGunnar Mills</div>
4752b8bde9SGunnar Mills
48