Send and display description on creation

This commit is contained in:
Brandon Dyck 2020-03-31 23:36:24 -06:00
parent d07d5cac31
commit 966b337a93

View File

@ -124,7 +124,7 @@ func pageCreate() h.Term {
e.Input(a.Name(fieldNameEventName)), e.Input(a.Name(fieldNameEventName)),
e.Label(a.For(fieldNameDescription))(h.Text("Description")), 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.Label(a.For(fieldNameEarliest))(h.Text("Earliest date")),
e.Input(a.Name(fieldNameEarliest), a.Type("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")), e.H3()(h.Text("Name")),
h.Text(name), h.Text(name),
e.H3()(h.Text("Description")),
h.Text(description),
e.H3()(h.Text("Earliest date")), e.H3()(h.Text("Earliest date")),
h.Text(earliest.Format(dateDisplayFmt)), h.Text(earliest.Format(dateDisplayFmt)),