diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/kvm/index.html | 4 | ||||
-rw-r--r-- | web/kvm/navbar.pug | 2 |
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<br>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<br>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") |