Submit social housing lettings and sales data (CORE)
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.
 
 
 
 

25 lines
620 B

class Form::Setup::Questions::SchemeId < ::Form::Question
def initialize(id, hsh, page)
super("scheme_id", hsh, page)
@header = "What scheme is this log for?"
@hint_text = "Enter scheme name or postcode"
@type = "select"
@answer_options = answer_options
end
def answer_options
answer_opts = {}
return answer_opts unless ActiveRecord::Base.connected?
Scheme.select(:id, :service_name).each_with_object(answer_opts) do |scheme, hsh|
hsh[scheme.id] = scheme.service_name
hsh
end
end
private
def selected_answer_option_is_derived?(_case_log)
false
end
end