add autocomplete attribute for login form inputs,
fix config form labels
This commit is contained in:
parent
2b967250f9
commit
17596ab1aa
@ -24,9 +24,9 @@
|
|||||||
<h2 class="w3-center">Proxmox VE Login</h2>
|
<h2 class="w3-center">Proxmox VE Login</h2>
|
||||||
<form>
|
<form>
|
||||||
<label for="username"><b>Username</b></label>
|
<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>
|
<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>
|
<label for="realm">Realm</label>
|
||||||
<select class="w3-select w3-border" id="realm" name="realm"></select>
|
<select class="w3-select w3-border" id="realm" name="realm"></select>
|
||||||
<div class="w3-center">
|
<div class="w3-center">
|
||||||
|
@ -91,7 +91,7 @@ function addResourceLine (fieldset, iconHref, type, labelText, id, attributes, u
|
|||||||
|
|
||||||
const label = document.createElement("label");
|
const label = document.createElement("label");
|
||||||
label.innerText = labelText;
|
label.innerText = labelText;
|
||||||
label.htmlFor = labelText;
|
label.htmlFor = id;
|
||||||
field.append(label);
|
field.append(label);
|
||||||
|
|
||||||
if (type === "input") {
|
if (type === "input") {
|
||||||
@ -171,7 +171,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, diskDetails) {
|
|||||||
field.append(icon);
|
field.append(icon);
|
||||||
|
|
||||||
// Add a label for the disk bus and device number
|
// Add a label for the disk bus and device number
|
||||||
const diskLabel = document.createElement("label");
|
const diskLabel = document.createElement("p");
|
||||||
diskLabel.innerText = diskName;
|
diskLabel.innerText = diskName;
|
||||||
diskLabel.dataset.disk = diskID;
|
diskLabel.dataset.disk = diskID;
|
||||||
field.append(diskLabel);
|
field.append(diskLabel);
|
||||||
@ -467,7 +467,7 @@ function addNetworkLine (fieldset, prefix, netID, netDetails) {
|
|||||||
icon.dataset.values = netDetails;
|
icon.dataset.values = netDetails;
|
||||||
field.appendChild(icon);
|
field.appendChild(icon);
|
||||||
|
|
||||||
const netLabel = document.createElement("label");
|
const netLabel = document.createElement("p");
|
||||||
netLabel.innerText = `${prefix}${netID}`;
|
netLabel.innerText = `${prefix}${netID}`;
|
||||||
netLabel.dataset.network = netID;
|
netLabel.dataset.network = netID;
|
||||||
netLabel.dataset.values = netDetails;
|
netLabel.dataset.values = netDetails;
|
||||||
@ -609,7 +609,6 @@ function addDeviceLine (fieldset, prefix, deviceID, deviceDetails, deviceName) {
|
|||||||
field.appendChild(icon);
|
field.appendChild(icon);
|
||||||
|
|
||||||
const deviceLabel = document.createElement("p");
|
const deviceLabel = document.createElement("p");
|
||||||
|
|
||||||
deviceLabel.innerText = deviceName;
|
deviceLabel.innerText = deviceName;
|
||||||
deviceLabel.dataset.device = deviceID;
|
deviceLabel.dataset.device = deviceID;
|
||||||
deviceLabel.dataset.values = deviceDetails;
|
deviceLabel.dataset.values = deviceDetails;
|
||||||
|
Loading…
Reference in New Issue
Block a user