Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to modify the Post Form #27

Open
aspiringpro opened this issue Jan 5, 2015 · 3 comments
Open

Trying to modify the Post Form #27

aspiringpro opened this issue Jan 5, 2015 · 3 comments

Comments

@aspiringpro
Copy link

How do I go about modifying the post form, let's say to include a Date Picker element. I have tried adding something like this to the posts.coffee file
postDate: type: Date autoform: afFieldInput: type: 'Date'

I then modified the dashboard.html file :

<div class="panel-body"> {{#autoForm id="add" collection="Posts" type="insert"}} {{> afQuickField name="title"}} {{> afQuickField name="content"}} {{> afQuickField name="postDate"}} <!-- {{> afQuickField name="picture"}} --> {{> afQuickField name="picture"}} <!-- {{> afFileUpload name="picture" collection="Attachments"}} --> <button type="submit" class="btn btn-primary">Add Post</button> {{/autoForm}} </div>

@mpowaga
Copy link
Collaborator

mpowaga commented Jan 6, 2015

Check out aldeed:autoform-bs-datepicker if you need a date-picker.

@aspiringpro
Copy link
Author

Doesn't the standard date field work with bootstrap 3?

@yogiben
Copy link
Owner

yogiben commented Jan 9, 2015

Normally, autoform generates a proper date picker.

You shouldn't need to specify the afFieldInput, just type: Date

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants