From 6026d54062ae7141e50d99fd30fee4a81cf09c23 Mon Sep 17 00:00:00 2001 From: bel Date: Sat, 20 Jul 2024 21:16:54 -0600 Subject: [PATCH] fill a dummy form --- cmd/http/public/transactions.html | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/cmd/http/public/transactions.html b/cmd/http/public/transactions.html index ce5926d..15a6e0a 100644 --- a/cmd/http/public/transactions.html +++ b/cmd/http/public/transactions.html @@ -82,7 +82,12 @@ 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("edit-date").value = delta.Date + document.getElementById("edit-description").value = delta.Description + document.getElementById("edit-name").value = delta.Name + document.getElementById("edit-value").value = delta.Value + document.getElementById("modal").showModal() } @@ -141,7 +146,19 @@
- + + + + + + + + + + + + +