Browse Source

Rename question method

CLDC-3740-Replace-you-didnt-answer-with-link
Manny Dinssa 4 weeks ago
parent
commit
7e5ffe772b
  1. 2
      app/components/check_answers_summary_list_card_component.rb
  2. 2
      app/helpers/check_answers_helper.rb

2
app/components/check_answers_summary_list_card_component.rb

@ -50,7 +50,7 @@ private
if log.creation_method_bulk_upload? && log.bulk_upload.present? && !log.optional_fields.include?(question.id)
"<span class=\"app-!-colour-red\">You still need to answer this question</span>".html_safe
else
govuk_link_to question.summary_error_message, correct_validation_action_href(question, log, nil, @correcting_hard_validation), class: "govuk-link govuk-link--no-visited-state"
govuk_link_to question.check_answer_prompt_message, correct_validation_action_href(question, log, nil, @correcting_hard_validation), class: "govuk-link govuk-link--no-visited-state"
end
end

2
app/helpers/check_answers_helper.rb

@ -64,7 +64,7 @@ private
if log.creation_method_bulk_upload? && log.bulk_upload.present? && !log.optional_fields.include?(question.id)
"<span class=\"app-!-colour-red\">You still need to answer this question</span>".html_safe
else
govuk_link_to question.summary_error_message, unanswered_action_href(question, log), class: "govuk-link govuk-link--no-visited-state"
govuk_link_to question.check_answer_prompt_message, unanswered_action_href(question, log), class: "govuk-link govuk-link--no-visited-state"
end
end
end

Loading…
Cancel
Save