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 @@
- + + + + + + + + + + + + +