diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-17 14:30:30 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-17 14:30:30 -0700 |
commit | 48f47310204df4cb1bdb5ee8db761ab942b20527 (patch) | |
tree | 17d60a09a95ef14d962e37d1b1f0a5089ea43f9c /management/editor/editor.go | |
parent | 4b85ce4b24c5ae2ed6ca3f5f23af92b988e9f4b2 (diff) |
adding initial updates to provide better time recording for post editing & creation
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r-- | management/editor/editor.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index f8b1970..486c22f 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -87,9 +87,17 @@ func addFieldToEditorView(e *Editor, f Field) { func addPostDefaultFieldsToEditorView(p Editable, e *Editor) { defaults := []Field{ Field{ - View: Input("Timestamp", p, map[string]string{ + View: Input("Date", p, map[string]string{ "label": "Publish Date", "type": "date", + "class": "date __ponzu", + }), + }, + Field{ + View: Input("Time", p, map[string]string{ + "label": "Publish Time", + "type": "time", + "class": "time __ponzu", }), }, Field{ |