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

input_type for schedule_select not recognized #40

Open
sureshprasanna70 opened this issue Apr 26, 2018 · 3 comments
Open

input_type for schedule_select not recognized #40

sureshprasanna70 opened this issue Apr 26, 2018 · 3 comments

Comments

@sureshprasanna70
Copy link

sureshprasanna70 commented Apr 26, 2018

I'm using rails default form helper along with date_picker. This is my usage of schedulable.
<%= f.schedule_select :schedule,input_types: {date: :date_picker, time: :time_picker, datetime: :datetime_picker}, style: :bootstrap, until: true, count: true%>
I'm still getting the default date and time pickers instead of bootstrap's date and time pickers. What am I doing wrong?

@andreibondarev
Copy link

@sureshprasanna70 Did you ever figure this out? Is using SimpleForm a requirement for the datepicker?

@sureshprasanna70
Copy link
Author

@andreibondarev I wasn't able to figure it out.

@andreibondarev
Copy link

@sureshprasanna70 So some of the different style types work and some others do not. I was able to get it working as a flatpicr. I also had to use the master branch, I think the latest release is at least a year behind master:
gem 'schedulable', branch: 'master', git: 'git://github.com/benignware/schedulable.git'

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

2 participants