13 changed files with 58 additions and 37 deletions
@ -1,17 +1,19 @@
|
||||
class Form::Setup::Pages::Scheme < ::Form::Page |
||||
def initialize(id, hsh, subsection) |
||||
def initialize(_id, hsh, subsection) |
||||
super("scheme", hsh, subsection) |
||||
@header = "" |
||||
@description = "" |
||||
@questions = questions |
||||
|
||||
@depends_on = [{ "supported_housing_schemes_enabled?" => true }] |
||||
@depends_on = [{ |
||||
"supported_housing_schemes_enabled?" => true, |
||||
"needstype" => 2, |
||||
}] |
||||
@derived = true |
||||
end |
||||
|
||||
def questions |
||||
[ |
||||
Form::Setup::Questions::SchemeId.new(nil, nil, self) |
||||
Form::Setup::Questions::SchemeId.new(nil, nil, self), |
||||
] |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue