Implemented User Management

This commit is contained in:
2026-04-15 00:25:21 -05:00
parent 4dddf30c4c
commit 9797cbc52e
5 changed files with 208 additions and 6 deletions

16
static/register.js Normal file
View File

@@ -0,0 +1,16 @@
function getFirst(item, className) {
return item.getElementsByClassName(className)[0]
}
var saveBtn = document.getElementById("save-btn");
for (chk of document.getElementsByClassName("pgrid")) {
chk.onclick = (event) => {
console.log(event.target)
event.target.dataset.mark = event.target.dataset.mark == "True" ? "False" : "True"
event.target.children[0].name = event.target.dataset.targ;
event.target.children[0].value = event.target.dataset.mark;
event.target.dataset.changed = true;
saveBtn.style.display = "block";
}
}