diff options
author | Maxim Devaev <[email protected]> | 2021-08-01 21:25:26 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-08-01 21:25:26 +0300 |
commit | 5933cc0b09b4f37e7e5f714b23ab5993e6fc0b2c (patch) | |
tree | c8bbbc7edf6813dccd0e2e0d740b00d398af9b4e /web/kvm/navbar-msd.pug | |
parent | f5c1908657489d496e786f0d6aa579d1b5500542 (diff) |
upload image by url in web ui
Diffstat (limited to 'web/kvm/navbar-msd.pug')
-rw-r--r-- | web/kvm/navbar-msd.pug | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/web/kvm/navbar-msd.pug b/web/kvm/navbar-msd.pug index 33a56845..dd671f71 100644 --- a/web/kvm/navbar-msd.pug +++ b/web/kvm/navbar-msd.pug @@ -37,7 +37,7 @@ li(id="msd-dropdown" class="right feature-disabled") tr td Image: td(width="100%") #[select(disabled id="msd-image-selector")] - td #[button(disabled id="msd-remove-image") Remove] + td #[button(disabled id="msd-remove-button") Remove] table(class="kv msd-multi-storage feature-disabled") tr(class="msd-cdrom-emulation feature-disabled") td Drive #[a(target="_blank" href="https://github.com/pikvm/pikvm/blob/master/pages/msd.md") mode]: @@ -53,34 +53,34 @@ li(id="msd-dropdown" class="right feature-disabled") div(id="msd-storage-progress" class="progress") span(id="msd-storage-progress-value" class="progress-value") hr - input(type="file" id="msd-select-new-image-file" class="hidden") div(class="buttons buttons-row") - button(disabled id="msd-select-new-image-button" class="row50") Select image to upload - button(disabled id="msd-upload-new-image-button" class="row25") Upload - button(disabled id="msd-abort-uploading-button" class="row25") Abort + button(disabled id="msd-select-new-button" class="row50") Select image to upload + button(disabled id="msd-upload-new-button" class="row25") Upload + button(disabled id="msd-abort-new-button" class="row25") Abort div(id="msd-message-another-user-uploads" class="hidden") hr +menu_message("info", "Another user uploads an image") - div(id="msd-submenu-new-image" class="hidden") + div(id="msd-new-sub" class="hidden") + hr + table(class="kv") + tr + td Specify a local file: + td #[input(type="file" id="msd-new-file")] + tr + td #[b Or] paste a URL: + td #[input(type="text" id="msd-new-url" style="width: 100%")] + div(id="msd-uploading-sub" class="hidden") hr table(class="kv") tr td New image: - td(id="msd-new-image-name" class="value") + td(id="msd-uploading-name" class="value") tr td Upload size: - td(id="msd-new-image-size" class="value") + td(id="msd-uploading-size" class="value") div(class="text") div(id="msd-uploading-progress" class="progress") span(id="msd-uploading-progress-value" class="progress-value") - hr - table(class="kv") - tr - td(class="value") Tip: - td To speed up uploading, close the Stream window. - tr - td - td This will save network bandwidth. hr div(class="buttons buttons-row") button(disabled id="msd-connect-button" class="row50") Connect drive to Server |