Skip to content

Commit

Permalink
Add content for EFTA countries
Browse files Browse the repository at this point in the history
This adds an additional line of text that we want to show for certain
countries.
  • Loading branch information
thomasleese committed Nov 29, 2023
1 parent 6bc1a73 commit ca70be5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/eligibility_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ def england_or_wales?
CountryCode.england?(country_code) || CountryCode.wales?(country_code)
end

def european_free_trade_association?
CountryCode.european_free_trade_association?(country_code)
end

def skip_additional_questions?
country&.eligibility_skip_questions || false
end
Expand Down
10 changes: 10 additions & 0 deletions app/views/eligibility_interface/result/ineligible.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@
</ul>
<% end %>

<% if @eligibility_check.ineligible_reasons.include?(:work_experience) && @eligibility_check.european_free_trade_association? %>
<p class="govuk-body">
To apply for QTS, you’ll need at least 9 months of teaching work experience that was gained after completing your teaching qualification.
</p>

<p class="govuk-body">
The adaptation period for citizens of Iceland, Norway, and Lichtenstein can be used to gain more teaching experience; contact <%= govuk_link_to t("service.email.enquiries"), "mailto:#{t("service.email.enquiries")}" %> for more information.
</p>
<% end %>

<% unless @eligibility_check.ineligible_reasons.include?(:misconduct) || @eligibility_check.england_or_wales? %>
<p class="govuk-body">You can also:</p>

Expand Down

0 comments on commit ca70be5

Please sign in to comment.