1<!-- Shutdown and Reboot modal -->
2<div class="uib-modal__content">
3  <button
4    aria-label="Close"
5    type="button"
6    class="btn  btn--close  float-right"
7    ng-click="$dismiss()"
8  >
9    <icon file="icon-close.svg"></icon>
10  </button>
11  <div class="modal-header" id="modal-operation">
12    <h3>
13      <icon file="icon-warning.svg" aria-hidden="true"></icon>
14      {{
15        activeModal === 2 || activeModal === 3
16          ? "Server shutdown will cause outage"
17          : "Server reboot will cause outage"
18      }}
19    </h3>
20  </div>
21  <div class="modal-body">
22    <p ng-if="activeModal === 2 || activeModal === 3">
23      Are you sure you want to
24      {{ activeModal === 2 ? "orderly" : "immediate" }}
25      shutdown?
26    </p>
27    <p ng-if="activeModal === 0 || activeModal === 1">
28      Are you sure you want to
29      {{ activeModal === 0 ? "orderly" : "immediate" }}
30      reboot?
31    </p>
32  </div>
33  <div class="modal-footer">
34    <!-- Power operation confirm buttons -->
35    <button
36      type="submit"
37      class="btn btn-primary"
38      ng-click="$close(activeModal)"
39    >
40      <span ng-if="activeModal === 0 || activeModal === 1">Reboot</span>
41      <span ng-if="activeModal === 2 || activeModal === 3">Shutdown</span>
42    </button>
43    <!-- Cancel modal power confirmation -->
44    <button type="button" class="btn btn-secondary" ng-click="$dismiss()">
45      Cancel
46    </button>
47  </div>
48</div>
49