fixed platform gpio again

This commit is contained in:
Maxim Devaev 2024-10-06 21:03:39 +03:00
parent b6869cfbec
commit 5b0ca351d7
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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")