summaryrefslogtreecommitdiff
path: root/web/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'web/kvm')
-rw-r--r--web/kvm/index.html13
-rw-r--r--web/kvm/index.pug2
-rw-r--r--web/kvm/navbar-msd.pug8
3 files changed, 15 insertions, 8 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html
index 3be03972..fccb7893 100644
--- a/web/kvm/index.html
+++ b/web/kvm/index.html
@@ -41,6 +41,7 @@
<link rel="stylesheet" href="/share/css/led.css">
<link rel="stylesheet" href="/share/css/slider.css">
<link rel="stylesheet" href="/share/css/switch.css">
+ <link rel="stylesheet" href="/share/css/radio.css">
<link rel="stylesheet" href="/share/css/progress.css">
<link rel="stylesheet" href="/share/css/keypad.css">
<link rel="stylesheet" href="/share/css/tabs.css">
@@ -279,12 +280,14 @@
</table>
<table class="kv msd-multi-storage feature-disabled">
<tr class="msd-cdrom-emulation feature-disabled">
- <td>Emulate CD-ROM drive:</td>
+ <td>Drive mode:</td>
<td>
- <div class="switch-box">
- <input class="switch-checkbox" checked type="checkbox" id="msd-emulate-cdrom-checkbox">
- <label class="switch-label" for="msd-emulate-cdrom-checkbox"><span class="switch-inner"></span><span class="switch"></span></label>
- </div>
+ <div class="radio-box">
+ <input checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1">
+ <label for="msd-mode-radio-cdrom">CD-ROM</label>
+ <input type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0">
+ <label for="msd-mode-radio-flash">Flash</label>
+ </div>
</td>
</tr>
</table>
diff --git a/web/kvm/index.pug b/web/kvm/index.pug
index 21c33c17..752dfe29 100644
--- a/web/kvm/index.pug
+++ b/web/kvm/index.pug
@@ -4,7 +4,7 @@ append vars
- title = "Pi-KVM Session"
- main_js = "kvm/main"
- body_class = "body-no-select"
- - css_list = css_list.concat(["navbar", "window", "modal", "led", "slider", "switch", "progress", "keypad", "tabs"])
+ - css_list = css_list.concat(["navbar", "window", "modal", "led", "slider", "switch", "radio", "progress", "keypad", "tabs"])
- css_list = css_list.concat(["kvm/stream", "kvm/hid", "kvm/msd", "kvm/keyboard", "kvm/about"])
block body
diff --git a/web/kvm/navbar-msd.pug b/web/kvm/navbar-msd.pug
index fddcf198..63564ae6 100644
--- a/web/kvm/navbar-msd.pug
+++ b/web/kvm/navbar-msd.pug
@@ -43,9 +43,13 @@ li(id="msd-dropdown" class="right feature-disabled")
td #[button(disabled id="msd-remove-image") Remove]
table(class="kv msd-multi-storage feature-disabled")
tr(class="msd-cdrom-emulation feature-disabled")
- td Emulate CD-ROM drive:
+ td Drive mode:
td
- +switch("msd-emulate-cdrom-checkbox")
+ div(class="radio-box")
+ input(checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1")
+ label(for="msd-mode-radio-cdrom") CD-ROM
+ input(type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0")
+ label(for="msd-mode-radio-flash") Flash
div(class="msd-multi-storage feature-disabled")
hr
div(class="text")