aboutsummaryrefslogtreecommitdiff
path: root/src/templates/ledger-edit.html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-10-19 21:55:02 -0500
committerMark Powers <markppowers0@gmail.com>2020-10-19 21:55:02 -0500
commite0a4d1bb1339e80775aa37efaf8cac314278f8e9 (patch)
tree91c09487df6793e4faaed4c0a883cba2ae199d20 /src/templates/ledger-edit.html
parentad24db7fe9fca72c38caaa40d2ada8cbeb04994d (diff)
Add navigation template and logout
Diffstat (limited to 'src/templates/ledger-edit.html')
-rw-r--r--src/templates/ledger-edit.html33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/templates/ledger-edit.html b/src/templates/ledger-edit.html
index 2acc2c2..e939b6d 100644
--- a/src/templates/ledger-edit.html
+++ b/src/templates/ledger-edit.html
@@ -8,24 +8,21 @@
</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 class="main">
+ <h1>{{name}}'s Budget</h1>
+ <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>
</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>
+ {{> navigation}}
</body>
-</html>
+</html> \ No newline at end of file