adds selected option via params for helper methods
This commit is contained in:
@@ -13,7 +13,7 @@ module OfficingHelper
|
|||||||
officer_assignments.each do |oa|
|
officer_assignments.each do |oa|
|
||||||
options << ["#{oa.booth_assignment.booth.name}", oa.id]
|
options << ["#{oa.booth_assignment.booth.name}", oa.id]
|
||||||
end
|
end
|
||||||
options_for_select(options)
|
options_for_select(options, params[:oa])
|
||||||
end
|
end
|
||||||
|
|
||||||
def recount_to_compare_with_final_recount(final_recount)
|
def recount_to_compare_with_final_recount(final_recount)
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ module PollsHelper
|
|||||||
(poll.starts_at.to_date..poll.ends_at.to_date).each do |date|
|
(poll.starts_at.to_date..poll.ends_at.to_date).each do |date|
|
||||||
options << [l(date, format: :long), l(date)]
|
options << [l(date, format: :long), l(date)]
|
||||||
end
|
end
|
||||||
options_for_select(options)
|
options_for_select(options, params[:d])
|
||||||
end
|
end
|
||||||
|
|
||||||
def poll_final_recount_option(poll)
|
def poll_final_recount_option(poll)
|
||||||
|
|||||||
Reference in New Issue
Block a user