You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
379 B
22 lines
379 B
module SchedulesHelper
|
|
|
|
def options_for_frequency_hours
|
|
[
|
|
['Once A Week', 24 * 7],
|
|
['Every Other Week', 2 * 24 * 7],
|
|
['Once A Month', 4 * 24 * 7]
|
|
]
|
|
end
|
|
|
|
def frequency_description(hours)
|
|
case hours
|
|
when (24 * 7)
|
|
'Once A Week'
|
|
when (2 * 24 * 7)
|
|
'Every Other Week'
|
|
when (4 * 24 * 7)
|
|
'Once A Month'
|
|
end
|
|
end
|
|
end
|