{{define "body"}} <form class='form' hx-post="/recipes/{{.Recipe.Id}}"> <h1> <input name="title" placeholder="title" value={{.Recipe.Title}}> </h1> <div> <h2>Ingredients</h2> <textarea name="ingredients" rows="8" placeholder="ingredients" >{{.Recipe.Ingredients}}</textarea> </div> <div> <h2>Instructions</h2> <textarea name="instructions" rows="8" placeholder="instructions" >{{.Recipe.Instructions}}</textarea> </div> <input name="by" placeholder="by" value="{{.Recipe.By}}" > <input name="source" placeholder="source" value="{{.Recipe.Source}}" > <footer class="actions"> <a href="/recipes/{{.Recipe.Id}}">Cancel<a> <input type="submit" value="Save"> </footer> </form> {{end}}