From 204690d0849bb8ac20c8af0bf28beca86f074b13 Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Wed, 1 Apr 2020 00:37:39 -0600 Subject: [PATCH] Fix admin form --- front/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")),