diff --git a/app/controllers/routes_into_teaching/steps_controller.rb b/app/controllers/routes_into_teaching/steps_controller.rb index 19b84f7386..3825c558e4 100644 --- a/app/controllers/routes_into_teaching/steps_controller.rb +++ b/app/controllers/routes_into_teaching/steps_controller.rb @@ -24,6 +24,7 @@ def completed end @results = RoutesIntoTeaching::Routes.recommended(session[:routes_into_teaching]) + @results = [] # TODO - remove before deploy end private diff --git a/app/views/routes_into_teaching/steps/completed.html.erb b/app/views/routes_into_teaching/steps/completed.html.erb index d970e297f5..598cb84185 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. To find out more about routes into teaching, <%= link_to "speak to one of our teacher training advisers", "/teacher-training-advisers" %>.

<% end %>