152b8bde9SGunnar Mills<loader loading="loading"></loader>
2c652ed18SDixsie Wolmers<div id="power-usage" class="page">
3c652ed18SDixsie Wolmers  <h1 class="page-title">Manage Power Usage</h1>
4006aaa0fSGunnar Mills  <form class="power-usage__form" role="form" action="">
5c652ed18SDixsie Wolmers    <section class="section">
6*30d7c637SDerick Montague      <div class="section-header">
7c652ed18SDixsie Wolmers        <h2 class="section-title">Power information</h2>
8*30d7c637SDerick Montague      </div>
9c652ed18SDixsie Wolmers      <dl class="list-pair">
10c652ed18SDixsie Wolmers        <dt>Power Consumption</dt>
11c652ed18SDixsie Wolmers        <dd>{{ power_consumption }}</dd>
12c652ed18SDixsie Wolmers      </dl>
13c652ed18SDixsie Wolmers    </section>
14c652ed18SDixsie Wolmers    <section class="section">
15*30d7c637SDerick Montague      <div class="section-header">
16c652ed18SDixsie Wolmers        <h2 class="section-title">
17c652ed18SDixsie Wolmers          Server power cap setting
18c652ed18SDixsie Wolmers        </h2>
19*30d7c637SDerick Montague      </div>
20c652ed18SDixsie Wolmers      <div class="section-content">
21c652ed18SDixsie Wolmers        <p>
22c652ed18SDixsie Wolmers          Set a power cap to keep power consumption at or below the specified
23c652ed18SDixsie Wolmers          value in watts.
24c652ed18SDixsie Wolmers        </p>
25c652ed18SDixsie Wolmers        <div class="toggle-container">
26c652ed18SDixsie Wolmers          <div class="toggle">
27c652ed18SDixsie Wolmers            <input
28c652ed18SDixsie Wolmers              id="toggle__switch-round"
29006aaa0fSGunnar Mills              class="toggle-switch toggle-switch__round-flat"
30006aaa0fSGunnar Mills              type="checkbox"
31006aaa0fSGunnar Mills              tabindex="0"
32006aaa0fSGunnar Mills              ng-model="power_cap.PowerCapEnable"
33c652ed18SDixsie Wolmers              ng-checked="power_cap.PowerCapEnable"
34c652ed18SDixsie Wolmers            />
35c652ed18SDixsie Wolmers            <label for="toggle__switch-round" tabindex="0"
36c652ed18SDixsie Wolmers              >Server power cap setting is
37c652ed18SDixsie Wolmers              <span class="uid-switch__status">{{
38c652ed18SDixsie Wolmers                power_cap.PowerCapEnable ? "on" : "off"
39c652ed18SDixsie Wolmers              }}</span></label
40c652ed18SDixsie Wolmers            >
41006aaa0fSGunnar Mills          </div>
42c652ed18SDixsie Wolmers          <span>
43c652ed18SDixsie Wolmers            {{ power_cap.PowerCapEnable ? "On" : "Off" }}
44c652ed18SDixsie Wolmers          </span>
45006aaa0fSGunnar Mills        </div>
46006aaa0fSGunnar Mills      </div>
47c652ed18SDixsie Wolmers      <div class="section-content form__field">
48c652ed18SDixsie Wolmers        <label for="power-cap" class="content-label"
49c652ed18SDixsie Wolmers          >POWER CAP VALUE IN WATTS</label
50c652ed18SDixsie Wolmers        >
51c652ed18SDixsie Wolmers        <input
52c652ed18SDixsie Wolmers          id="power-cap"
53c652ed18SDixsie Wolmers          type="number"
54c652ed18SDixsie Wolmers          min="100"
55c652ed18SDixsie Wolmers          max="10000"
56c652ed18SDixsie Wolmers          step="1"
57c652ed18SDixsie Wolmers          ng-disabled="!power_cap.PowerCapEnable"
58c652ed18SDixsie Wolmers          ng-model="power_cap.PowerCap"
59c652ed18SDixsie Wolmers        />
6052b8bde9SGunnar Mills      </div>
61006aaa0fSGunnar Mills    </section>
62c652ed18SDixsie Wolmers    <div class="form__actions">
63c652ed18SDixsie Wolmers      <button type="submit" class="btn-primary" ng-click="setPowerCap()">
64c652ed18SDixsie Wolmers        Save settings
65c652ed18SDixsie Wolmers      </button>
66c652ed18SDixsie Wolmers      <button type="button" class="btn btn-secondary" ng-click="refresh()">
67c652ed18SDixsie Wolmers        Cancel
68c652ed18SDixsie Wolmers      </button>
69c652ed18SDixsie Wolmers    </div>
70006aaa0fSGunnar Mills  </form>
7152b8bde9SGunnar Mills</div>
72