summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-10-06 21:03:39 +0300
committerMaxim Devaev <[email protected]>2024-10-06 21:03:39 +0300
commit5b0ca351d79d79c2373684c2fc565f7be98f5849 (patch)
treebe5731caec61bc7474b7d190957cc2e157ed3637
parentb6869cfbec01f3f46282228cc6ceb6e0feac4155 (diff)
fixed platform gpio again
-rw-r--r--web/kvm/index.html4
-rw-r--r--web/kvm/navbar.pug2
2 files changed, 3 insertions, 3 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 95d4aa34..c0a9a6dd 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -396,7 +396,7 @@
<td>Connect main USB to Server:</td>
<td align="right">
<div class="switch-box">
- <input class="gpio-switch-${channel} gpio-switch" disabled type="checkbox" data-channel="__v3_usb_breaker__" data-confirm-off="Turning off this switch will disconnect the main USB&lt;br&gt;from the server. Are you sure you want to continue?">
+ <input class="gpio-switch-__v3_usb_breaker__ gpio-switch" disabled type="checkbox" id="gpio-switch-__v3_usb_breaker__" data-channel="__v3_usb_breaker__" data-confirm-off="Turning off this switch will disconnect the main USB&lt;br&gt;from the server. Are you sure you want to continue?">
<label for="gpio-switch-__v3_usb_breaker__"><span class="switch-inner"></span><span class="switch"></span></label>
</div>
</td>
@@ -405,7 +405,7 @@
<td>Enable locator LED:</td>
<td align="right">
<div class="switch-box">
- <input class="gpio-switch-${channel} gpio-switch" disabled type="checkbox" data-channel="__v4_locator__" data-confirm-off="">
+ <input class="gpio-switch-__v4_locator__ gpio-switch" disabled type="checkbox" id="gpio-switch-__v4_locator__" data-channel="__v4_locator__" data-confirm-off="">
<label for="gpio-switch-__v4_locator__"><span class="switch-inner"></span><span class="switch"></span></label>
</div>
</td>
diff --git a/web/kvm/navbar.pug b/web/kvm/navbar.pug
index 47097bb0..381fc067 100644
--- a/web/kvm/navbar.pug
+++ b/web/kvm/navbar.pug
@@ -17,7 +17,7 @@ mixin menu_switch_notable_gpio(channel, title, confirm_off="")
td !{title}:
td(align="right")
div(class="switch-box")
- input(disabled type="checkbox" class="gpio-switch-${channel} gpio-switch"
+ input(disabled type="checkbox" id=`gpio-switch-${channel}` class=`gpio-switch-${channel} gpio-switch`
data-channel=channel data-confirm-off=confirm_off)
label(for=`gpio-switch-${channel}`)
span(class="switch-inner")