Skip to content

Commit

Permalink
Routes wizard no results text (#4500)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
spencerldixon and Sarah-DfE authored Jan 21, 2025
1 parent e3b60d0 commit f552ba9
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions app/views/routes_into_teaching/steps/completed.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,13 @@
<div class="row inset">
<div class="col col-845">
<h2 class="heading--box-blue">Your options</h2>
<p>Based on your answers, you may be eligible for the following teacher training options:</p>
</div>
</div>

<div class="row inset">
<div class="col col-845">
<% @results.each do |result| %>
<div class="col-space-s">
<%= render Content::ResultsBoxComponent.new(
<% if @results.any? %>
<p>Based on your answers, you may be eligible for the following teacher training options:</p>

<% @results.each do |result| %>
<div class="col-space-s">
<%= render Content::ResultsBoxComponent.new(
heading: result["title"],
fee: result["course_fee"],
course_length: result["course_length"],
Expand All @@ -46,7 +44,10 @@
link_text: result["cta_text"],
link_target: result["cta_link"],
) %>
</div>
</div>
<% end %>
<% else %>
<p>There are no teacher training routes that match your current circumstances. <%= link_to "Get advice on getting into teaching", "/help-and-support" %>.</p>
<% end %>
</div>
</div>
Expand Down

0 comments on commit f552ba9

Please sign in to comment.