Fix admin form

This commit is contained in:
Brandon Dyck 2020-04-01 00:37:39 -06:00
parent 4f250077c8
commit 204690d084

View File

@ -151,7 +151,7 @@ func (h *handler) handleAdmin(w http.ResponseWriter, r *http.Request) {
body := hm.Terms{
e.H2()(hm.Text("Edit your event")),
e.Form(a.Action(pathDoCreate), a.Method(http.MethodPost))(
e.Form()(
e.Label(a.For(fieldNameEventName))(hm.Text("Event name")),
e.Input(
a.Name(fieldNameEventName),
@ -160,7 +160,7 @@ func (h *handler) handleAdmin(w http.ResponseWriter, r *http.Request) {
e.Br(),
e.Label(a.For(fieldNameDescription))(hm.Text("Description")),
e.Textarea(a.Name(fieldNameEventName))(hm.Text(event.Description)),
e.Textarea(a.Name(fieldNameDescription))(hm.Text(event.Description)),
e.Br(),
e.Label(a.For(fieldNameEarliest))(hm.Text("Earliest date")),