populate static elements of config.html,
add node info to config page search, change login.css to form.css
This commit is contained in:
parent
529959cba5
commit
913175239c
12
config.html
12
config.html
@ -5,8 +5,20 @@
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>tronnet - client</title>
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/form.css" type="text/css">
|
||||
<script src="scripts/config.js" type="module"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center-div">
|
||||
<form>
|
||||
<fieldset id="user-configurable">
|
||||
<legend>Change Configuration</legend>
|
||||
<div class="btn-group" id="form-actions">
|
||||
<button id="submit">CANCEL</button>
|
||||
<button id="submit">SUBMIT</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -5,7 +5,7 @@
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title>tronnet - client</title>
|
||||
<link rel="stylesheet" href="css/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/login.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/form.css" type="text/css">
|
||||
<script src="scripts/login.js" type="module"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -4,5 +4,13 @@ window.addEventListener("DOMContentLoaded", init);
|
||||
|
||||
async function init () {
|
||||
let uriData = getURIData();
|
||||
console.log(uriData);
|
||||
let node = uriData.node;
|
||||
let type = uriData.type;
|
||||
let vmid = uriData.vmid;
|
||||
await populateForm(node, type, vmid);
|
||||
}
|
||||
|
||||
async function populateForm (node, type, vmid) {
|
||||
let config = request(`/nodes/${node}/${type}/${vmid}/config`);
|
||||
console.log(config);
|
||||
}
|
@ -125,7 +125,7 @@ class Instance extends HTMLElement {
|
||||
configButton.src = data.status === "running" ? "images/actions/config-inactive.svg" : "images/actions/config-active.svg";
|
||||
configButton.addEventListener("click", () => {
|
||||
if (!this.actionLock && this.status !== "running") {
|
||||
goToPage("config.html", {type: this.type, vmid: this.vmid});
|
||||
goToPage("config.html", {node: this.node, type: this.type, vmid: this.vmid});
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user