summaryrefslogtreecommitdiff
path: root/web/kvm/navbar.pug
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-05-19 10:06:50 +0300
committerDevaev Maxim <[email protected]>2021-05-19 10:06:50 +0300
commitd18c27744f5a076683c0101f14a8ce5a0ac4b671 (patch)
treef095d825bf016f6252262866fede81caa4909997 /web/kvm/navbar.pug
parent0ab1427c286605c64751f5c8a457ed8e9429a697 (diff)
common table for switches
Diffstat (limited to 'web/kvm/navbar.pug')
-rw-r--r--web/kvm/navbar.pug18
1 files changed, 11 insertions, 7 deletions
diff --git a/web/kvm/navbar.pug b/web/kvm/navbar.pug
index d345f1dd..c86d5cb6 100644
--- a/web/kvm/navbar.pug
+++ b/web/kvm/navbar.pug
@@ -13,15 +13,19 @@ mixin menu_message(icon, short, classes="")
sup(style="line-height:1")
block
+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)
+ span(class="switch-inner")
+ span(class="switch")
+
mixin menu_switch(id, title, enabled, checked)
table(class="kv")
- td #{title}:
- td(align="right")
- div(class="switch-box")
- input(checked=checked disabled=!enabled type="checkbox" id=id)
- label(for=id)
- span(class="switch-inner")
- span(class="switch")
+ tr
+ +menu_switch_notable(id, title, enabled, checked)
ul(id="navbar")
li(class="left")