Kat
2 years ago
6 changed files with 32 additions and 1 deletions
@ -0,0 +1,10 @@ |
|||||||
|
class Form::Lettings::Pages::DuplicatePage < ::Form::Page |
||||||
|
def initialize(id, hsh, section) |
||||||
|
super |
||||||
|
@page_type = "duplicate" |
||||||
|
end |
||||||
|
|
||||||
|
def questions |
||||||
|
@questions ||= [Form::Lettings::Questions::Duplicate.new(nil, nil, self)] |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,10 @@ |
|||||||
|
class Form::Lettings::Questions::Duplicate < ::Form::Question |
||||||
|
def initialize(id, hsh, page) |
||||||
|
super |
||||||
|
@id = "duplicate" |
||||||
|
@check_answer_label = "Look at all these duplicates" |
||||||
|
@header = "Look at all these duplicates" |
||||||
|
@type = "duplicate" |
||||||
|
@hint_text = "" |
||||||
|
end |
||||||
|
end |
@ -0,0 +1,5 @@ |
|||||||
|
Display duplicates here |
||||||
|
<%= govuk_button_link_to( |
||||||
|
"Continue", |
||||||
|
send(@log.form.next_page_redirect_path(@page, @log, current_user), @log), |
||||||
|
) %> |
Loading…
Reference in new issue