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/index.html | |
parent | f5c1908657489d496e786f0d6aa579d1b5500542 (diff) |
upload image by url in web ui
Diffstat (limited to 'web/kvm/index.html')
-rw-r--r-- | web/kvm/index.html | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/web/kvm/index.html b/web/kvm/index.html index f6302516..5402303b 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -324,7 +324,7 @@ <select disabled id="msd-image-selector"></select> </td> <td> - <button disabled id="msd-remove-image">Remove</button> + <button disabled id="msd-remove-button">Remove</button> </td> </tr> </table> @@ -348,11 +348,10 @@ </div> </div> <hr> - <input class="hidden" type="file" id="msd-select-new-image-file"> <div class="buttons buttons-row"> - <button class="row50" disabled id="msd-select-new-image-button">Select image to upload</button> - <button class="row25" disabled id="msd-upload-new-image-button">Upload</button> - <button class="row25" disabled id="msd-abort-uploading-button">Abort</button> + <button class="row50" disabled id="msd-select-new-button">Select image to upload</button> + <button class="row25" disabled id="msd-upload-new-button">Upload</button> + <button class="row25" disabled id="msd-abort-new-button">Abort</button> </div> <div class="hidden" id="msd-message-another-user-uploads"> <hr> @@ -365,32 +364,38 @@ </table> </div> </div> - <div class="hidden" id="msd-submenu-new-image"> + <div class="hidden" id="msd-new-sub"> <hr> <table class="kv"> <tr> - <td>New image:</td> - <td class="value" id="msd-new-image-name"></td> + <td>Specify a local file:</td> + <td> + <input type="file" id="msd-new-file"> + </td> </tr> <tr> - <td>Upload size:</td> - <td class="value" id="msd-new-image-size"></td> + <td><b>Or</b> paste a URL:</td> + <td> + <input type="text" id="msd-new-url" style="width: 100%"> + </td> </tr> </table> - <div class="text"> - <div class="progress" id="msd-uploading-progress"><span class="progress-value" id="msd-uploading-progress-value"></span></div> - </div> + </div> + <div class="hidden" id="msd-uploading-sub"> <hr> <table class="kv"> <tr> - <td class="value">Tip:</td> - <td>To speed up uploading, close the Stream window.</td> + <td>New image:</td> + <td class="value" id="msd-uploading-name"></td> </tr> <tr> - <td></td> - <td>This will save network bandwidth.</td> + <td>Upload size:</td> + <td class="value" id="msd-uploading-size"></td> </tr> </table> + <div class="text"> + <div class="progress" id="msd-uploading-progress"><span class="progress-value" id="msd-uploading-progress-value"></span></div> + </div> </div> <hr> <div class="buttons buttons-row"> |