blob: e939b6dbe027fbdf7dd5591147064516a2c377b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!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>
<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>
{{> navigation}}
</body>
</html>
|