4 changed files with 41 additions and 8 deletions
@ -0,0 +1,15 @@
|
||||
class Form::Sales::Pages::LaNominations < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
super |
||||
@id = "la_nominations" |
||||
@header = "" |
||||
@description = "" |
||||
@subsection = subsection |
||||
end |
||||
|
||||
def questions |
||||
@questions ||= [ |
||||
Form::Sales::Questions::LaNominations.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
||||
@ -0,0 +1,18 @@
|
||||
class Form::Sales::Questions::LaNominations < ::Form::Question |
||||
def initialize(id, hsh, page) |
||||
super |
||||
@id = "lanomagr" |
||||
@check_answer_label = "Household rehoused under a local authority nominations agreement?" |
||||
@header = "Was the household rehoused under a 'local authority nominations agreement'?" |
||||
@type = "radio" |
||||
@answer_options = ANSWER_OPTIONS |
||||
@page = page |
||||
@hint_text = "A local authority nominations agreement is a written agreement between a local authority and private registered provider (PRP) that some or all of its sales vacancies are offered to local authorities for rehousing" |
||||
end |
||||
|
||||
ANSWER_OPTIONS = { |
||||
"1" => { "value" => "Yes" }, |
||||
"2" => { "value" => "No" }, |
||||
"3" => { "value" => "Don’t know" }, |
||||
}.freeze |
||||
end |
||||
Loading…
Reference in new issue