From 966b337a9345b2f5784c1519d667d1eed5b9566e Mon Sep 17 00:00:00 2001 From: Brandon Dyck Date: Tue, 31 Mar 2020 23:36:24 -0600 Subject: [PATCH] Send and display description on creation --- http/server.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/http/server.go b/http/server.go index 19c2488..b56ad15 100644 --- a/http/server.go +++ b/http/server.go @@ -124,7 +124,7 @@ func pageCreate() h.Term { e.Input(a.Name(fieldNameEventName)), e.Label(a.For(fieldNameDescription))(h.Text("Description")), - e.Textarea(a.Name(fieldNameEventName), a.Placeholder("What's going on?"))(), + e.Textarea(a.Name(fieldNameDescription), a.Placeholder("What's going on?"))(), e.Label(a.For(fieldNameEarliest))(h.Text("Earliest date")), e.Input(a.Name(fieldNameEarliest), a.Type("date")), @@ -211,6 +211,9 @@ func pageDoCreate(name, description string, earliest, latest time.Time) h.Term { e.H3()(h.Text("Name")), h.Text(name), + e.H3()(h.Text("Description")), + h.Text(description), + e.H3()(h.Text("Earliest date")), h.Text(earliest.Format(dateDisplayFmt)),