From b6cf4656c8de57c84261822f33feab9059baa653 Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 20 Jul 2024 21:12:49 -0600 Subject: [PATCH] dummy mvp is ew --- cmd/http/public/transactions.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/cmd/http/public/transactions.html b/cmd/http/public/transactions.html index 9475ec7..ce5926d 100644 --- a/cmd/http/public/transactions.html +++ b/cmd/http/public/transactions.html @@ -65,7 +65,7 @@ result += ` ${t[0].Description}` result += ` ` for (var delta of t) { - result += ` ` + result += ` ` result += ` ` result += ` ` result += ` ` @@ -79,6 +79,13 @@ document.getElementById("reg").innerHTML = result } + function stageEdit(row) { + const deltaJSON = atob(row.attributes.delta.value) + const delta = JSON.parse(deltaJSON) + document.getElementById("modal-textarea").value = JSON.stringify(delta, null, 2) + document.getElementById("modal").showModal() + } + function stage(who, contributesToHouse) { var d = new Date() const zeroPad = (num, places) => String(num).padStart(places, '0') @@ -128,6 +135,16 @@
+ +
+
+
+ +
+ + + +
${delta.Name.split(":")[0]} :${delta.Name.split(":").slice(1, 100).join(":")}${delta.Payee ? delta.Currency : ""}${delta.Payee ? delta.Value : ""}