|
|
|
@ -41,7 +41,7 @@ module TasklistHelper
|
|
|
|
|
def subsection_link(subsection, log, current_user) |
|
|
|
|
if subsection.status(log) != :cannot_start_yet |
|
|
|
|
next_page_path = next_page_or_check_answers(subsection, log, current_user).to_s |
|
|
|
|
govuk_link_to(subsection.label, next_page_path.dasherize, aria: { describedby: subsection.id.dasherize }) |
|
|
|
|
govuk_link_to(subsection.label, next_page_path.dasherize, class: "govuk-task-list__link", aria: { describedby: subsection.id.dasherize }) |
|
|
|
|
else |
|
|
|
|
subsection.label |
|
|
|
|
end |
|
|
|
@ -59,6 +59,10 @@ module TasklistHelper
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
def tasklist_link_class(status) |
|
|
|
|
status == :cannot_start_yet ? "" : "govuk-task-list__item--with-link" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
private |
|
|
|
|
|
|
|
|
|
def breadcrumb_organisation(log) |
|
|
|
|