Add edit function

This commit is contained in:
Wancat
2022-11-04 23:36:23 +08:00
parent 7c63223aa0
commit b1d0bc826f
6 changed files with 68 additions and 5 deletions

8
templates/edit.html Normal file
View File

@@ -0,0 +1,8 @@
{{ define "title" }}編輯{{ end }}
{{ define "main" }}
<h1>編輯帳本</h1>
<form action="/edit" method="POST">
<textarea name="data" rows="15" cols="40">{{ . }}</textarea><br>
<input type="submit" value="儲存">
</form>
{{ end }}