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.
 
 
 
 

24 lines
572 B

class Form::Setup::Pages::Location < ::Form::Page
def initialize(_id, hsh, subsection)
super("location", hsh, subsection)
@header = ""
@description = ""
@questions = questions
# Only display if there is more than one location
@depends_on = [{
"supported_housing_schemes_enabled?" => true,
"needstype" => 2,
"scheme.locations.size" => {
"operator" => ">",
"operand" => 1,
},
}]
@derived = true
end
def questions
[
Form::Setup::Questions::Location.new(nil, nil, self),
]
end
end