app/demo/components/datetime_fields.pom in voom-presenters-0.1.7 vs app/demo/components/datetime_fields.pom in voom-presenters-0.1.8

- old
+ new

@@ -25,20 +25,21 @@ * Chronologically Date Strings, e.g., YYYY-MM-DD HH:MM DOC grid do column 6 do datetime_field name: :skydive_at, - format: 'F j, Y h:i' do + format: 'F j, Y h:i K' do + value Time.new(2019, 10, 31) label 'Select your date and time to skydive' icon :event event :change do - replaces :context_list, :context_list, hide_time: true + replaces :context_list, :context_list end end end column 6 do - attach :context_list, hide_time: true + attach :context_list end end grid do column 6 do title 'Min Date' @@ -48,11 +49,11 @@ datetime_field max_date: "2017-12-15 02:00" title 'Min Date (today)' datetime_field min_date: :today - title 'Min (today), Max (14 days from now)' - datetime_field min_date: :today, max_date: DateTime.now.next_day(14) # Or in rails Time.now + 14.days + title 'Min (today), Max (Halloween 2025)' + datetime_field min_date: :today, max_date: Time.new(2025, 10, 31) # Or in rails Time.now + 14.days title 'Disabling specific dates' datetime_field disable: ["2025-01-30", "2025-02-21", "2025-03-08", DateTime.new(2025, 4, 9)] title 'Disable range of dates' \ No newline at end of file