summaryrefslogtreecommitdiff
path: root/web/kvm
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-08-06 02:00:13 +0300
committerMaxim Devaev <[email protected]>2021-08-06 02:00:13 +0300
commitd5b59043de77e6ef1bfaec62d4491ecb38351b39 (patch)
tree49549af980b3b555318114ccea94bf9483c08191 /web/kvm
parentba22978d634dbbf11a0c9cb7573052199f6a763e (diff)
atx confirmation
Diffstat (limited to 'web/kvm')
-rw-r--r--web/kvm/index.html14
-rw-r--r--web/kvm/navbar-atx.pug4
2 files changed, 16 insertions, 2 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 622f2d29..9d5df1cf 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -235,9 +235,21 @@
</div>
</li>
<li class="right feature-disabled" id="atx-dropdown"><a class="menu-button" href="#"><img class="led-gray" data-dont-hide-menu id="atx-power-led" src="/share/svg/led-atx-power.svg"><img class="led-gray" data-dont-hide-menu id="atx-hdd-led" src="/share/svg/led-atx-hdd.svg">ATX</a>
- <div class="menu">
+ <div class="menu" data-dont-hide-menu>
<div class="text"><b>Control the server's power<br></b><sub>Use the short click for ACPI shutdown</sub></div>
<hr>
+ <table class="kv">
+ <tr>
+ <td>Ask click confirmation:</td>
+ <td align="right">
+ <div class="switch-box">
+ <input checked type="checkbox" id="atx-ask-switch">
+ <label for="atx-ask-switch"><span class="switch-inner"></span><span class="switch"></span></label>
+ </div>
+ </td>
+ </tr>
+ </table>
+ <hr>
<div class="buttons">
<button disabled id="atx-power-button">&bull; Click Power <sup><i>short</i></sup></button>
<button disabled id="atx-power-button-long">&bull; Click Power <sup><i>long</i></sup></button>
diff --git a/web/kvm/navbar-atx.pug b/web/kvm/navbar-atx.pug
index 903ea916..b5c16a72 100644
--- a/web/kvm/navbar-atx.pug
+++ b/web/kvm/navbar-atx.pug
@@ -3,11 +3,13 @@ li(id="atx-dropdown" class="right feature-disabled")
+navbar_led("atx-power-led", "led-atx-power")
+navbar_led("atx-hdd-led", "led-atx-hdd")
| ATX
- div(class="menu")
+ div(data-dont-hide-menu class="menu")
div(class="text")
b Control the server's power#[br]
sub Use the short click for ACPI shutdown
hr
+ +menu_switch("atx-ask-switch", "Ask click confirmation", true, true)
+ hr
div(class="buttons")
button(disabled id="atx-power-button") &bull; Click Power #[sup #[i short]]
button(disabled id="atx-power-button-long") &bull; Click Power #[sup #[i long]]