Closed rangerscience closed 10 months ago
Checked demo applicatoin with ActiveAdmin v3.1.1 and active_admin_datetimepicker v1.1.0 and it works as described in documentation. Here is an example for an Edit product page:
# would allow only date(no time) and starting from today
f.input :available_on, as: :date_time_picker, datepicker_options: {
timepicker: false, format: 'Y-m-d', min_date: Time.now.to_date
}
Thank you for this code!
These do not appear to work (allow selection of past dates):
This does appear to work: (does not allow selection of past dates):
(FYI: I found my fix my inspecting the page HTML, and noticed that the div's attribute was
data-picker-options
)