summaryrefslogtreecommitdiff
path: root/view/html/recipe-edit.html
diff options
context:
space:
mode:
Diffstat (limited to 'view/html/recipe-edit.html')
-rw-r--r--view/html/recipe-edit.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html
index 7a50905..2513be8 100644
--- a/view/html/recipe-edit.html
+++ b/view/html/recipe-edit.html
@@ -10,7 +10,9 @@
</header>
<body>
<main>
- <form>
+ <form action="/recipe?method=update">
+ <input type="hidden" name="id" value="{{.Id}}">
+
<p>
<label>Title</label>
<input type="text" name="title" value="{{.Title}}">
@@ -31,10 +33,12 @@
<input type="text" name="notes" value="{{.Notes}}">
</p>
+ <button type="submit">save</button>
<a href="/recipe/{{.Id}}"><button type="button">cancel</button></a>
</form>
</main>
{{ template "footer" }}
+ <script src="/static/view/static/ceres.js"></script>
</body>
</html>
{{end}}