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