Fix admin form
This commit is contained in:
parent
4f250077c8
commit
204690d084
@ -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")),
|
||||
|
Loading…
Reference in New Issue
Block a user