add boot order card in config

This commit is contained in:
Arthur Lu 2023-08-09 21:52:55 +00:00
parent 6cbac6b4fc
commit 0fe9200429
2 changed files with 10 additions and 0 deletions

View File

@ -53,6 +53,9 @@
<img id="device-add" src="images/actions/device/add.svg" class="clickable" alt="Add New PCIe Device" title="Add New PCIe Device">
</div>
</fieldset>
<fieldset class="w3-card w3-padding none" id="boot-card">
<legend>Boot Order</legend>
</fieldset>
<div class="w3-container w3-center" id="form-actions">
<button class="w3-button w3-margin" id="exit" type="button">EXIT</button>
</div>

View File

@ -30,6 +30,7 @@ async function init () {
populateDisk();
populateNetworks();
populateDevices();
populateBoot();
document.querySelector("#exit").addEventListener("click", handleFormExit);
}
@ -616,6 +617,12 @@ async function populateDevices () {
}
}
async function populateBoot () {
if (type === "qemu") {
document.querySelector("#boot-card").classList.remove("none");
}
}
function addDeviceLine (fieldset, prefix, deviceID, deviceDetails, deviceName) {
const field = document.querySelector(`#${fieldset}`);