Skip to content

Commit 54934ca

Browse files
committed
Update content on the eligbility result page proof of work history section
1 parent f5be6ef commit 54934ca

File tree

3 files changed

+38
-25
lines changed

3 files changed

+38
-25
lines changed

app/controllers/eligibility_interface/result_controller.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ def show
77
eligibility_check.complete! if eligibility_check.persisted?
88

99
render(
10-
if eligibility_check.eligible?(includes_email_domains_for_referees: true)
10+
if eligibility_check.eligible?(includes_email_domains_for_referees:)
1111
"eligible"
1212
else
1313
"ineligible"
1414
end,
1515
)
1616
end
17+
18+
private
19+
20+
def includes_email_domains_for_referees
21+
FeatureFlags::FeatureFlag.active?(:email_domains_for_referees)
22+
end
1723
end

app/views/shared/eligible_region_content_components/_proof_of_work_history.html.erb

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
1-
<p class="govuk-body">You must provide evidence that you have been employed as a qualified teacher for at least 9 months or more.</p>
1+
<p class="govuk-body">You must provide evidence that you have:</p>
2+
<ul class="govuk-list govuk-list--bullet">
3+
<li>been employed as a qualified teacher for at least 9 months or more</li>
4+
<li>worked in a school that delivers mandatory education</li>
5+
<% if eligibility_check&.qualified_for_subject_required? && !eligibility_check&.eligible_work_experience_in_england? %>
6+
<li>worked unsupervised with children aged between 11 and 16 years</li>
7+
<% else %>
8+
<li>worked unsupervised with children aged between 5 and 16 years</li>
9+
<% end %>
10+
<li>been solely responsible for planning, preparing, and delivering lessons to at least 4 students at a time</li>
11+
<li>been solely responsible for assessing and reporting on the progress of those students</li>
12+
</ul>
213

314
<p class="govuk-inset-text">Teaching work experience can be gained in any country but must be from after you qualified as a teacher.</p>
415

@@ -7,20 +18,24 @@
718
<p class="govuk-body"><%= govuk_link_to "Learn more about statutory induction periods for early career teachers in England.", "https://www.gov.uk/government/publications/induction-for-early-career-teachers-england" %></p>
819
<% end %>
920

10-
<h3 class="govuk-heading-s">References</h3>
11-
12-
<p class="govuk-body">You must provide the names and email addresses of references who can confirm that during your teaching work experience you:</p>
13-
14-
<ul class="govuk-list govuk-list--bullet">
15-
<li>worked in the role after becoming qualified as a teacher</li>
16-
<li>worked in a school that delivers mandatory education</li>
17-
<li>worked unsupervised with children aged between 5 and 16 years</li>
18-
<li>were solely responsible for planning, preparing, and delivering lessons to at least 4 students at a time</li>
19-
<li>were solely responsible for assessing and reporting on the progress of those students</li>
20-
</ul>
21-
2221
<% unless region.reduced_evidence_accepted %>
23-
<p class="govuk-body">We will contact the references you’ve provided to confirm your teaching work history before we award QTS.</p>
22+
<h3 class="govuk-heading-s">References</h3>
23+
24+
<p class="govuk-body">You’ll need to provide references from your places of employment so we can verify your teaching work history. They must:</p>
25+
<ul class="govuk-list govuk-list--bullet">
26+
<% if FeatureFlags::FeatureFlag.active?(:email_domains_for_referees) %>
27+
<li>have an email address that uses the institution’s domain, for example, name@institution.edu</li>
28+
<% end %>
29+
<li>be a senior member of staff that is still working at this institution (either a headteacher/principal, an assistant/deputy head, or a institution business manager)</li>
30+
<li>be able to provide a reference in English</li>
31+
<li>only comment on teaching work that you did after becoming a qualified teacher</li>
32+
</ul>
33+
34+
<% if FeatureFlags::FeatureFlag.active?(:email_domains_for_referees) %>
35+
<p class="govuk-body">A domain is the part of an email address that shows who provides it. It comes after the @ symbol. For example, in name@institution.edu the domain is institution.edu</p>
36+
37+
<p class="govuk-body">We only accept references from official email addresses to verify they are genuine staff members of a recognised institution. To verify your work history, we will also check that the email domain is listed on the institution’s website.</p>
38+
<% end %>
2439
<% end %>
2540

2641
<% if eligibility_check&.eligible_work_experience_in_england? %>

spec/views/shared/eligible_region_content_spec.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@
104104
context "with work experience" do
105105
let(:region) { create(:region, reduced_evidence_accepted: false) }
106106

107-
it do
108-
expect(subject).to match(
109-
/You must provide evidence that you have been employed/,
110-
)
111-
end
107+
it { expect(subject).to match(/You must provide evidence that you have/) }
112108

113109
it do
114110
expect(subject).not_to match(
@@ -157,11 +153,7 @@
157153
context "with a region which does not accept reduced evidence" do
158154
let(:region) { create(:region, reduced_evidence_accepted: false) }
159155

160-
it do
161-
expect(subject).to match(
162-
/You must provide evidence that you have been employed/,
163-
)
164-
end
156+
it { expect(subject).to match(/You must provide evidence that you have/) }
165157
end
166158
end
167159

0 commit comments

Comments
 (0)