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.
|
|
|
class Form::Lettings::Questions::Prevloc < ::Form::Question
|
|
|
|
def initialize(id, hsh, page)
|
|
|
|
super
|
|
|
|
@id = "prevloc"
|
|
|
|
@check_answer_label = "Location of household’s last settled accommodation"
|
|
|
|
@header = "Select a local authority"
|
|
|
|
@type = "select"
|
|
|
|
@inferred_check_answers_value = [{ "condition" => { "previous_la_known" => 0 }, "value" => "Not known" }]
|
|
|
|
@check_answers_card_number = 0
|
|
|
|
@hint_text = "Select ‘Northern Ireland’, ‘Scotland’, ‘Wales’ or ‘Outside the UK’ if the household’s last settled home was outside England."
|
|
|
|
end
|
|
|
|
|
|
|
|
def answer_options
|
|
|
|
{ "" => "Select an option" }.merge(LocalAuthority.active(form.start_date).map { |la| [la.code, la.name] }.to_h)
|
|
|
|
end
|
|
|
|
end
|