diff --git a/front/server.go b/front/server.go index 8b7bff5..ac76ad2 100644 --- a/front/server.go +++ b/front/server.go @@ -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")),