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

datepicker always present #80

Open
paulinapmk opened this issue Apr 25, 2016 · 0 comments
Open

datepicker always present #80

paulinapmk opened this issue Apr 25, 2016 · 0 comments

Comments

@paulinapmk
Copy link

paulinapmk commented Apr 25, 2016

Hi,
I would like to have a simple timepicker, but datepicker is always present.
I tried with using the "format" option, the "pickDate: false" option but it is still there.
What I am not doing?

Here is the sample of my view:

<%= simple_form_for(@hour, html: {class: 'form-inline'}, remote: true) do |f| %>
    <%= f.error_notification %>
<div class="row form-inputs">
  <%= f.input :start_time, as: :time_picker, autocomplete: :off %>
  <%= f.input :end_time, as: :time_picker, autocomplete: :off  %>
</div>
<div class="form-buttons">
  <%= f.button :submit, "Zapisz", class: "btn btn-primary" %>
  <%= link_to '<button type="button" class="btn btn-primary" title="Wstecz">Wstecz</button>'.html_safe, hours_path %>
</div>
<% end %>

and in coffee script I have
$(document).ready -> $('.time_picker').datetimepicker XXX return

where XXX was one of the options I tried: format: "H:i", format: "LT" or pickDate:false

Thank you in advance for your help.

Regards,
Paulina

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

1 participant