From f552ba98cfd0eee7d2b0988fe63492398f854612 Mon Sep 17 00:00:00 2001 From: Spencer Dixon Date: Tue, 21 Jan 2025 12:06:48 +0000 Subject: [PATCH] Routes wizard no results text (#4500) * Added no results text * updating link to help and support instead of TTA * Remove results override --------- Co-authored-by: Sarah-DfE <103052329+Sarah-DfE@users.noreply.github.com> --- .../steps/completed.html.erb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/app/views/routes_into_teaching/steps/completed.html.erb b/app/views/routes_into_teaching/steps/completed.html.erb index d970e297f5..1ac1fc6c15 100644 --- a/app/views/routes_into_teaching/steps/completed.html.erb +++ b/app/views/routes_into_teaching/steps/completed.html.erb @@ -29,15 +29,13 @@

Your options

-

Based on your answers, you may be eligible for the following teacher training options:

-
-
-
-
- <% @results.each do |result| %> -
- <%= render Content::ResultsBoxComponent.new( + <% if @results.any? %> +

Based on your answers, you may be eligible for the following teacher training options:

+ + <% @results.each do |result| %> +
+ <%= render Content::ResultsBoxComponent.new( heading: result["title"], fee: result["course_fee"], course_length: result["course_length"], @@ -46,7 +44,10 @@ link_text: result["cta_text"], link_target: result["cta_link"], ) %> -
+
+ <% end %> + <% else %> +

There are no teacher training routes that match your current circumstances. <%= link_to "Get advice on getting into teaching", "/help-and-support" %>.

<% end %>