complete dropdown
This commit is contained in:
parent
2fde5056a0
commit
93ca9d278e
8 changed files with 103 additions and 24 deletions
|
|
@ -15,12 +15,3 @@ func (c *Controller) postNewOrder(w http.ResponseWriter, r *http.Request) {
|
|||
fmt.Println(r.Form)
|
||||
_ = c.tmpl["order/post_new"].Execute(w, struct{ Status any }{Status: r.Form})
|
||||
}
|
||||
|
||||
func (c *Controller) getNewOrder(w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Println("received Get request: ", r)
|
||||
type cake struct {
|
||||
Name string
|
||||
ID int
|
||||
}
|
||||
_ = c.tmpl["order/get_new"].Execute(w, struct{ Cakes []cake }{Cakes: []cake{cake{"Hello", 1}, cake{"World", 2}}})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue