add boot order card in config
This commit is contained in:
parent
9f68da61cb
commit
52519fcbd1
@ -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">
|
<img id="device-add" src="images/actions/device/add.svg" class="clickable" alt="Add New PCIe Device" title="Add New PCIe Device">
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</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">
|
<div class="w3-container w3-center" id="form-actions">
|
||||||
<button class="w3-button w3-margin" id="exit" type="button">EXIT</button>
|
<button class="w3-button w3-margin" id="exit" type="button">EXIT</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -30,6 +30,7 @@ async function init () {
|
|||||||
populateDisk();
|
populateDisk();
|
||||||
populateNetworks();
|
populateNetworks();
|
||||||
populateDevices();
|
populateDevices();
|
||||||
|
populateBoot();
|
||||||
|
|
||||||
document.querySelector("#exit").addEventListener("click", handleFormExit);
|
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) {
|
function addDeviceLine (fieldset, prefix, deviceID, deviceDetails, deviceName) {
|
||||||
const field = document.querySelector(`#${fieldset}`);
|
const field = document.querySelector(`#${fieldset}`);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user