Method: Content::RepositoriesHelper#time_selector

Defined in:
app/helpers/content/repositories_helper.rb

#time_selector(f) ⇒ Object



17
18
19
20
21
# File 'app/helpers/content/repositories_helper.rb', line 17

def time_selector f
  html_options   = { :class => 'span1', :disabled => f.object.schedule.blank? }
  f.select(:hour, options_for_time(0..23), {}, html_options) +
    f.select(:minute, options_for_time(0..59), {}, html_options)
end