Module: ForemanPatch::WindowPlansHelper

Defined in:
app/helpers/foreman_patch/window_plans_helper.rb

Instance Method Summary collapse

Instance Method Details

#plan_length(plan) ⇒ Object



4
5
6
# File 'app/helpers/foreman_patch/window_plans_helper.rb', line 4

def plan_length(plan)
  (plan.start_date - plan.end_date).to_i
end

#time_local_f(f, attr, options = {}) ⇒ Object



8
9
10
# File 'app/helpers/foreman_patch/window_plans_helper.rb', line 8

def time_local_f(f, attr, options = {})
  react_form_input('time', f, attr, options)
end