From da4dab35ccca5557bf29bfd63d3fef76beefec1e Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 20 Dec 2022 18:03:07 -0800 Subject: [PATCH] remove colons from forms --- login.html | 4 ++-- scripts/config.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/login.html b/login.html index 30d88ee..161b77f 100644 --- a/login.html +++ b/login.html @@ -14,9 +14,9 @@
Proxmox VE Login
- + - +
diff --git a/scripts/config.js b/scripts/config.js index bc5fe3e..9cf4158 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -24,17 +24,17 @@ async function populateForm (node, type, vmid) { let config = await request(`/nodes/${node}/${type}/${vmid}/config`); console.log(config); - addFormLine("name", "name", "Name:", {type: "text", value: config.data.name}); + addFormLine("name", "name", "Name", {type: "text", value: config.data.name}); - addFormLine("resources", "cores", "Cores:", {type: "number", value: config.data.cores, min: 1, max: 8192}); - addFormLine("resources", "memory", "Memory:", {type: "number", value: config.data.memory, min: 16}); + addFormLine("resources", "cores", "Cores", {type: "number", value: config.data.cores, min: 1, max: 8192}); + addFormLine("resources", "memory", "Memory", {type: "number", value: config.data.memory, min: 16}); let i = 0; while(Object.hasOwn(config.data, `sata${i}`)){ let sata = config.data[`sata${i}`]; sata = `{"${sata.replaceAll(":", '":"').replaceAll("=", '":"').replaceAll(",", '","')}"}`; sata = JSON.parse(sata); - addFormLine("resources", `sata${i}`, `SATA ${i}:`, {type: "text", value: sata.size}); + addFormLine("resources", `sata${i}`, `SATA ${i}`, {type: "text", value: sata.size}); i++; } }