List tx templates on homepage
This commit is contained in:
20
templates/index.html
Normal file
20
templates/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ledger Quick Note</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ledger Quick Note</h1>
|
||||
<form action="/action" method="POST">
|
||||
<label>Action: <select name="action">
|
||||
{{ range .Templates }}
|
||||
{{ if ne .Name "index.html" }}
|
||||
<option value="{{ .Name }}">{{ .Name }}</option>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</select></label>
|
||||
<label>Amount: <input name="amount" type="number"></label>
|
||||
<input type="submit">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user