Skip to content

Commit

Permalink
Added simple_datetime_input helper to Espresso::View::FormBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Semyonov committed Sep 10, 2010
1 parent 406adec commit 9b3ecc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/espresso/view/form_builder.rb
Expand Up @@ -42,6 +42,12 @@ def simple_date_input(method, options)
self.date_select(method, html_options)
end

def simple_datetime_input(method, options)
html_options = options.delete(:input_html) { {} }
self.label(method, options_for_label(options)) <<
self.datetime_select(method, html_options)
end

def phone_input(method, options)
basic_input_helper(:phone_field, :string, method, options)
end
Expand Down

0 comments on commit 9b3ecc7

Please sign in to comment.