remove name field
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
b0b3698258
commit
bee34d4569
@ -9,12 +9,9 @@
|
||||
<script src="scripts/config.js" type="module"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h3 id="name"></h3>
|
||||
<div class="center-div">
|
||||
<form>
|
||||
<fieldset>
|
||||
<legend>Name</legend>
|
||||
<div class="input-grid" id="name" style="grid-template-columns: auto 1fr;"></div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<legend>Resources</legend>
|
||||
<div class="input-grid" id="resources" style="grid-template-columns: repeat(3, auto) 1fr;"></div>
|
||||
|
@ -48,7 +48,7 @@ async function populateResources () {
|
||||
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
|
||||
|
||||
let name = type === "qemu" ? "name" : "hostname";
|
||||
addMetaLine("name", "Name", {type: "text", value: config.data[name]});
|
||||
document.querySelector("#name").innerText = config.data[name];
|
||||
addResourceLine("resources", "images/resources/cpu.svg", "Cores", {type: "number", value: config.data.cores, min: 1, max: 8192}, "Threads"); // TODO add max from quota API
|
||||
addResourceLine("resources", "images/resources/ram.svg", "Memory", {type: "number", value: config.data.memory, min: 16, step: 1}, "MiB"); // TODO add max from quota API
|
||||
if (type === "lxc") {
|
||||
|
Loading…
Reference in New Issue
Block a user