From 17596ab1aaa89050fe9ef988665139f4779a3cd8 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 7 Sep 2023 02:44:11 +0000 Subject: [PATCH] add autocomplete attribute for login form inputs, fix config form labels --- login.html | 4 ++-- scripts/config.js | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/login.html b/login.html index 90f8680..4bd9f5c 100644 --- a/login.html +++ b/login.html @@ -24,9 +24,9 @@

Proxmox VE Login

- + - +
diff --git a/scripts/config.js b/scripts/config.js index 7d3b806..57c5ec3 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -91,7 +91,7 @@ function addResourceLine (fieldset, iconHref, type, labelText, id, attributes, u const label = document.createElement("label"); label.innerText = labelText; - label.htmlFor = labelText; + label.htmlFor = id; field.append(label); if (type === "input") { @@ -171,7 +171,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, diskDetails) { field.append(icon); // Add a label for the disk bus and device number - const diskLabel = document.createElement("label"); + const diskLabel = document.createElement("p"); diskLabel.innerText = diskName; diskLabel.dataset.disk = diskID; field.append(diskLabel); @@ -467,7 +467,7 @@ function addNetworkLine (fieldset, prefix, netID, netDetails) { icon.dataset.values = netDetails; field.appendChild(icon); - const netLabel = document.createElement("label"); + const netLabel = document.createElement("p"); netLabel.innerText = `${prefix}${netID}`; netLabel.dataset.network = netID; netLabel.dataset.values = netDetails; @@ -609,7 +609,6 @@ function addDeviceLine (fieldset, prefix, deviceID, deviceDetails, deviceName) { field.appendChild(icon); const deviceLabel = document.createElement("p"); - deviceLabel.innerText = deviceName; deviceLabel.dataset.device = deviceID; deviceLabel.dataset.values = deviceDetails;