Migrate to layout
This commit is contained in:
@@ -1,27 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Ledger Quick Note</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Ledger Quick Note</h1>
|
||||
<form action="/new" method="POST">
|
||||
<label>Action:
|
||||
{{ range .Templates }}
|
||||
<input type="radio" name="action" value="{{ .Name }}">{{ .Name }}</option>
|
||||
{{ end }}
|
||||
</label><br>
|
||||
<label>Amount: <input name="amount" type="number"></label><br>
|
||||
<label>Account: <input name="account" type="text"></label></br>
|
||||
<label>Tx Name: <input name="name" type="text"></label></br>
|
||||
<input type="submit">
|
||||
</form>
|
||||
<h2>Scripts</h2>
|
||||
<ul>
|
||||
{{ range $k, $v := .Scripts }}
|
||||
<li><a href="/exec?name={{ $k }}">{{ $k }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
{{ define "main" }}
|
||||
<h1>Ledger Quick Note</h1>
|
||||
<form action="/new" method="POST">
|
||||
<label>Action:
|
||||
{{ range .Templates }}
|
||||
<input type="radio" name="action" value="{{ .Name }}">{{ .Name }}</option>
|
||||
{{ end }}
|
||||
</label><br>
|
||||
<label>Amount: <input name="amount" type="number"></label><br>
|
||||
<label>Account: <input name="account" type="text"></label></br>
|
||||
<label>Tx Name: <input name="name" type="text"></label></br>
|
||||
<input type="submit">
|
||||
</form>
|
||||
<h2>Scripts</h2>
|
||||
<ul>
|
||||
{{ range $k, $v := .Scripts }}
|
||||
<li><a href="/exec?name={{ $k }}">{{ $k }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user