add autocomplete attribute for login form inputs,

fix config form labels
This commit is contained in:
Arthur Lu 2023-09-07 02:44:11 +00:00
parent 820fe376d5
commit 32106b96ee
2 changed files with 5 additions and 6 deletions

View File

@ -24,9 +24,9 @@
<h2 class="w3-center">Proxmox VE Login</h2>
<form>
<label for="username"><b>Username</b></label>
<input class="w3-input w3-border" id="username" name="username" type="text">
<input class="w3-input w3-border" id="username" name="username" type="text" autocomplete="username">
<label for="password"><b>Password</b></label>
<input class="w3-input w3-border" id="password" name="password" type="password">
<input class="w3-input w3-border" id="password" name="password" type="password" autocomplete="current-password">
<label for="realm">Realm</label>
<select class="w3-select w3-border" id="realm" name="realm"></select>
<div class="w3-center">

View File

@ -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;