Kat
6 months ago
3 changed files with 17 additions and 5 deletions
@ -0,0 +1,11 @@ |
|||||||
|
module CheckErrorsHelper |
||||||
|
include GovukLinkHelper |
||||||
|
|
||||||
|
def check_errors_answer_text(question, log) |
||||||
|
question.displayed_as_answered?(log) ? "Change" : "Answer" |
||||||
|
end |
||||||
|
|
||||||
|
def check_errors_answer_link(log, question, page, applicable_questions) |
||||||
|
send("#{log.model_name.param_key}_#{question.page.id}_path", log, referrer: "check_errors", original_page_id: page.id, related_question_ids: applicable_questions.map(&:id)) |
||||||
|
end |
||||||
|
end |
Loading…
Reference in new issue