25 lines
455 B
25 lines
455 B
3 years ago
|
class Form::Setup::Pages::Organisation < ::Form::Page
|
||
|
def initialize(id, hsh, subsection)
|
||
|
super
|
||
|
@id = "organisation"
|
||
|
@header = ""
|
||
|
@description = ""
|
||
|
@questions = questions
|
||
|
@subsection = subsection
|
||
|
end
|
||
|
|
||
|
def questions
|
||
|
[
|
||
|
Form::Setup::Questions::OwningOrganisationId.new(nil, nil, self),
|
||
|
]
|
||
|
end
|
||
|
|
||
|
def routed_to?(_case_log)
|
||
|
!!form.current_user&.support?
|
||
|
end
|
||
|
|
||
|
def invalidated?(_case_log)
|
||
|
false
|
||
|
end
|
||
|
end
|