aboutsummaryrefslogtreecommitdiff
path: root/src/templates/ledger.html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2020-10-11 21:47:02 -0500
committerMark Powers <markppowers0@gmail.com>2020-10-11 21:47:02 -0500
commit292048edaf0e2d4c4d591cfec1d923cb6d845991 (patch)
tree7fe5a80a5e5805c8f9d66542a3f397e6802331f5 /src/templates/ledger.html
parente242733deb546c2b7f00d302a96bee0c0e609a2e (diff)
Add edit ledger
Diffstat (limited to 'src/templates/ledger.html')
-rw-r--r--src/templates/ledger.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/templates/ledger.html b/src/templates/ledger.html
index 0ac9b0e..f5c46de 100644
--- a/src/templates/ledger.html
+++ b/src/templates/ledger.html
@@ -5,6 +5,7 @@
<title>{{name}}'s Budget</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="static/styles.css">
+ <script src="/static/main.js"></script>
</head>
<body>
@@ -31,6 +32,8 @@
<th>Amount</th>
<th>Category</th>
<th>Tags</th>
+ <th></th>
+ <th></th>
</tr>
{{#each ledger}}
<tr>
@@ -40,6 +43,8 @@
<td>{{this.amount}}</td>
<td>{{this.category}}</td>
<td>{{this.subcategory}}</td>
+ <td><a href="/ledger/edit/{{this.id}}"><button>&#9881;</button></a></td>
+ <td><button onclick="remove({{this.id}})">X</button></td>
</tr>
{{/each}}
</table>