diff options
-rw-r--r-- | data/templates/recipe_edit.html | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/data/templates/recipe_edit.html b/data/templates/recipe_edit.html index 67437f6..bd67266 100644 --- a/data/templates/recipe_edit.html +++ b/data/templates/recipe_edit.html @@ -14,16 +14,15 @@ </header> <main> - <p>ID: {{.Id}}</p> - <form action="/add_recipes" method="post" id="recipe_form"> - <input placeholder="Title" type="text" id="custom_title" name="title" value="{{.Title}}"><br> - <input placeholder="Link (optional)" type="text" id="custom_link" name="url" value="{{.UpstreamUrl}}"><br> - <label for="image">New image (optional):</label> - <input id="image" type="file"><br> - <pre form="recipe_form" name="description_markdown" contenteditable="true"><code>{{.DescriptionMarkdown}}</code></pre> - <button type="submit">save</button> - </form> + <p>Recipe ID: {{.Id}}</p> + <input placeholder="Title" type="text" name="title" value="{{.Title}}"><br> + <input placeholder="Link (optional)" type="text" name="url" value="{{.UpstreamUrl}}"><br> + <label for="image">New image (optional):</label> + <input id="image" type="file"><br> + <pre contenteditable="true"><code>{{.DescriptionMarkdown}}</code></pre> + <button>save</button> <!-- TODO add functionality --> <a href="/recipe?id={{.Id}}"><button>cancel</button></a> + <button style="background-color: red">delete</button> <!-- TODO add functionality --> {{ template "footer.html" }} </main> </body> |