<!DOCTYPE html> <html> {{ template "head.html" }} <body> <header> <nav> <a href="/index.html">HOME</a> <a href="/add_recipes">add recipe</a> </nav> <h1>Edit a recipe</h1> </header> <main> <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> </html>