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 %>