diff options
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r-- | management/editor/editor.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go index a9a8c82..7bc5f35 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -234,7 +234,7 @@ func addFieldToEditorView(e *Editor, f Field) error { func addPostDefaultFieldsToEditorView(p Editable, e *Editor) error { defaults := []Field{ - Field{ + { View: Input("Slug", p, map[string]string{ "label": "URL Slug", "type": "text", @@ -242,13 +242,13 @@ func addPostDefaultFieldsToEditorView(p Editable, e *Editor) error { "placeholder": "Will be set automatically", }), }, - Field{ + { View: Timestamp("Timestamp", p, map[string]string{ "type": "hidden", "class": "timestamp __ponzu", }), }, - Field{ + { View: Timestamp("Updated", p, map[string]string{ "type": "hidden", "class": "updated __ponzu", |