mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -13,9 +13,19 @@ mixin menu_message(icon, short, classes="")
|
||||
sup(style="line-height:1")
|
||||
block
|
||||
|
||||
mixin menu_switch_notable(id, title, enabled, checked, classes="")
|
||||
td(class=`${classes}`) #{title}:
|
||||
td(class=`${classes}` align="right")
|
||||
mixin menu_switch_notable_gpio(channel, title, confirm_off="")
|
||||
td #{title}:
|
||||
td(align="right")
|
||||
div(class="switch-box")
|
||||
input(disabled type="checkbox" id=`gpio-switch-${channel}` class="gpio-switch"
|
||||
data-channel=channel data-confirm-off=confirm_off)
|
||||
label(for=`gpio-switch-${channel}`)
|
||||
span(class="switch-inner")
|
||||
span(class="switch")
|
||||
|
||||
mixin menu_switch_notable(id, title, enabled, checked)
|
||||
td #{title}:
|
||||
td(align="right")
|
||||
div(class="switch-box")
|
||||
input(checked=checked disabled=!enabled type="checkbox" id=id)
|
||||
label(for=id)
|
||||
|
||||
Reference in New Issue
Block a user