feat(widget-date): add input display formatting (#1739)

This commit is contained in:
Björn Rixman
2018-11-22 02:13:32 +01:00
committed by Shawn Erquhart
parent 9706b3cac7
commit 855efd848e
4 changed files with 36 additions and 9 deletions

View File

@ -18,7 +18,7 @@ collections: # A list of collections the CMS should be able to edit
create: true # Allow users to create new documents in this collection
fields: # The fields each document in this collection have
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
- { label: 'Publish Date', name: 'date', widget: 'datetime', format: 'YYYY-MM-DD hh:mma' }
- { label: 'Publish Date', name: 'date', widget: 'datetime', dateFormat: 'YYYY-MM-DD', timeFormat: 'HH:mm', format: 'YYYY-MM-DD HH:mm' }
- label: 'Cover Image'
name: 'image'
widget: 'image'