<!DOCTYPE html> <html> {{ template "head.html" }} <body> <header> <nav> <a href="/index.html">HOME</a> <a href="/add_recipes">add recipe</a> </nav> <h1>{{.Title}}</h1> </header> <main> <form action="/recipe/edit" method="POST"> <input type="hidden" name="id" value="{{.Id}}" /> <textarea style="resize:none;font-family:monospace, monospace;font-size: 1rem;" rows="18" wrap="soft" name="text">{{.Text}}</textarea> <button type="submit">save</button> <a href="/recipe?id={{.Id}}"><button type="button">cancel</button></a> </form> {{ template "footer.html" }} </main> </body> </html>