gui CREATE button
All checks were successful
cicd / ci (push) Successful in 1m3s

This commit is contained in:
Bel LaPointe
2025-02-21 16:24:41 -07:00
parent fcd7dd208c
commit af1b23731a

View File

@@ -187,6 +187,15 @@
}))
}
function create() {
http("POST", "/api/create", (body, status) => {
if (status != 200)
throw(`Unexpected status ${status}: ${body}`)
loadTransactions([])
load()
}, JSON.stringify({}))
}
function stage(who, contributesToHouse) {
var d = new Date()
const zeroPad = (num, places) => String(num).padStart(places, '0')
@@ -241,6 +250,11 @@
</details>
<details open>
<summary>Register</summary>
<form action="#" onsubmit="create(); return false;">
<button style="width: 100%">
CREATE
</button>
</form>
<div id="reg">
</div>
</details>