diff options
Diffstat (limited to 'view/html/recipe-edit.html')
-rw-r--r-- | view/html/recipe-edit.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html new file mode 100644 index 0000000..d615a7f --- /dev/null +++ b/view/html/recipe-edit.html @@ -0,0 +1,39 @@ +{{define "recipe-edit"}} +<html> + {{ template "head" }} + <header> + <nav> + <a href="/">HOME</a> + </nav> + <h1>Recipe editor</h1> + </header> + <body> + <main> + <form> + <p> + <label>Title</label> + <input type="text" name="title" value="{{.Title}}"> + </p> + + <p> + <label>Portions</label> + <input type="number" name="portions" value="{{.Portions}}"> + </p> + + <p> + <label>URL</label> + <input type="text" name="url" value="{{.Url}}"> + </p> + + <p> + <label>Notes</label> + <input type="text" name="notes" value="{{.Notes}}"> + </p> + + <a href="/recipe/{{.Id}}"><button type="button">cancel</button></a> + </form> + </main> + {{ template "footer" }} + </body> +</html> +{{end}} |