diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-10-11 21:47:02 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-10-11 21:47:02 -0500 |
commit | 292048edaf0e2d4c4d591cfec1d923cb6d845991 (patch) | |
tree | 7fe5a80a5e5805c8f9d66542a3f397e6802331f5 /src/templates/ledger-edit.html | |
parent | e242733deb546c2b7f00d302a96bee0c0e609a2e (diff) |
Add edit ledger
Diffstat (limited to 'src/templates/ledger-edit.html')
-rw-r--r-- | src/templates/ledger-edit.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/templates/ledger-edit.html b/src/templates/ledger-edit.html new file mode 100644 index 0000000..2acc2c2 --- /dev/null +++ b/src/templates/ledger-edit.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <title>{{name}}'s Budget</title> + <meta charset="UTF-8"> + <link rel="stylesheet" type="text/css" href="static/styles.css"> +</head> + +<body> + <h1>{{name}}'s Budget</h1> + <div> + <a href="/ledger"><button class="bold">Ledger</button></a> + <a href="/summary"><button>Summary</button></a> + <a href="/goals"><button>Goals</button></a> + <a href="/expected"><button>Expected</button></a> + </div> + <form method="post" action="/transaction/{{item.id}}"> + <input id="datePicker" name="when" placeholder="date" type="date"> + <input name="where" placeholder="where" type="text" value="{{item.where}}"> + <input name="amount" placeholder="amount" type="number" step="0.01" value="{{item.amount}}"> + <input name="category" placeholder="category" type="text" value="{{item.category}}"> + <input name="subcategory" placeholder="tags (csv)" type="text" value="{{item.subcategory}}"> + <input type="submit" value="Save"> + </form> + <script> + document.getElementById('datePicker').value = new Date().toLocaleDateString(); + </script> +</body> +</html> + |