Skip to content

Commit

Permalink
Fixes #36915 - Correct datetime input for report generation
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 committed Nov 13, 2023
1 parent b566ea8 commit 080eef7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/helpers/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,11 @@ def date_local_f(f, attr, options = {})
end

def datetime_local_f(f, attr, options = {})
react_form_input('dateTime', f, attr, options)
field(f, attr, options) do
addClass options, "container"
addClass options, "form-control"
f.datetime_local_field attr, options
end
end

def orderable_select_f(f, attr, choices, select_options = {}, html_options = {})
Expand Down

0 comments on commit 080eef7

Please sign in to comment.