diff options
author | xengineering <me@xengineering.eu> | 2024-01-08 19:36:01 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-01-08 19:36:01 +0100 |
commit | ae1a31f226de5701683231afaabf0f66503ca17d (patch) | |
tree | b11a8b8c91ac41ee7ffb783de23b5c38dd9e2e6a /view/html/recipe-edit.html | |
parent | 43e7bb10eaade56a9444ec089aa3102218231868 (diff) | |
download | ceres-ae1a31f226de5701683231afaabf0f66503ca17d.tar ceres-ae1a31f226de5701683231afaabf0f66503ca17d.tar.zst ceres-ae1a31f226de5701683231afaabf0f66503ca17d.zip |
Implement recipe editing
Diffstat (limited to 'view/html/recipe-edit.html')
-rw-r--r-- | view/html/recipe-edit.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html new file mode 100644 index 0000000..b4d6da5 --- /dev/null +++ b/view/html/recipe-edit.html @@ -0,0 +1,40 @@ +{{define "recipe-edit"}} +<html> + {{ template "head" }} + <header> + <nav> + <a href="/">HOME</a> + </nav> + <h1>Recipe editor</h1> + </header> + <body> + <main> + <form action="/recipes/{{.Id}}" method="POST"> + <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> + + <input type="submit" value="save"> + <a href="/recipes/{{.Id}}"><button type="button">cancel</button></a> + </form> + </main> + {{ template "footer" }} + </body> +</html> +{{end}} |