<!DOCTYPE html> <html> {{ template "head.html" }} <body> <header> <h1>Edit a recipe</h1> </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> <a href="/recipe?id={{.Id}}"><button>cancel</button></a> </main> </body> </html>