From 6fa6dbdec5aec38ad4ff241c298ce0aff371abb0 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Thu, 9 Nov 2023 16:17:17 +0000 Subject: [PATCH] Update decline email and view content This updates the content of the decline email and view to match the changes requested by our content designers. --- app/mailers/teacher_mailer.rb | 3 ++ .../application_forms/show/_declined.html.erb | 51 +++++++------------ .../application_declined.text.erb | 40 ++++++++++----- config/locales/mailer.en.yml | 2 +- spec/mailers/teacher_mailer_spec.rb | 24 +-------- .../application_forms_show_spec.rb | 6 +-- 6 files changed, 54 insertions(+), 72 deletions(-) diff --git a/app/mailers/teacher_mailer.rb b/app/mailers/teacher_mailer.rb index 09a93c9e82..24ff4d3980 100644 --- a/app/mailers/teacher_mailer.rb +++ b/app/mailers/teacher_mailer.rb @@ -19,6 +19,9 @@ def application_awarded end def application_declined + @view_object = + TeacherInterface::ApplicationFormViewObject.new(application_form:) + view_mail( GOVUK_NOTIFY_TEMPLATE_ID, to: teacher.email, diff --git a/app/views/teacher_interface/application_forms/show/_declined.html.erb b/app/views/teacher_interface/application_forms/show/_declined.html.erb index 148e68a92e..ebbf272487 100644 --- a/app/views/teacher_interface/application_forms/show/_declined.html.erb +++ b/app/views/teacher_interface/application_forms/show/_declined.html.erb @@ -1,50 +1,35 @@

Your QTS application has been declined

-

Why your application was declined

+

Thank you for applying for qualified teacher status (QTS) and for your patience while we reviewed your application.

-<% if (declined_reasons = view_object.declined_reasons).present? %> - <% declined_reasons.each do |title, reasons| %> - <% if title.present? %> -

<%= title %>

- <% end %> +

Reason for decline

- +<% view_object.declined_reasons.each do |title, reasons| %> + <% if title.present? %> +

<%= title %>

<% end %> + + <% end %> <% unless view_object.declined_cannot_reapply? %> -

What you can do next

- -

While your QTS application was declined this time, you can make a new application in future, if you’re able to address the decline reasons we’ve set out.

- -

If you reapply for QTS, you will not be able to review the details of your previous application.

+

What you can do next

-

<%= govuk_button_link_to "Apply again", new_teacher_interface_application_form_path %>

+

You’ll be able to make a new application for QTS once you've addressed the decline reasons we've given. If you reapply for QTS, you’ll not be able to review the details of your previous application.

-

Other routes to teaching in England

+

<%= govuk_button_link_to "Apply again", %i[new teacher_interface application_form] %>

-

You may want to explore other routes to teaching in England. QTS is not a requirement to teach in independent (private) schools, academies, free schools and in the further education (FE) sector in England.

- -

You can find out more about working in these sectors from:

- - - -

For further information on other routes to gaining QTS visit <%= govuk_link_to "Get Into Teaching", "https://getintoteaching.education.gov.uk/non-uk-teachers/teach-in-england-if-you-trained-overseas" %>.

-

You can also learn more about <%= govuk_link_to "training to teach in England", "https://getintoteaching.education.gov.uk/non-uk-teachers/train-to-teach-in-england-as-an-international-student" %>.

+

You may want to <%= govuk_link_to "explore other routes to getting QTS", "https://www.gov.uk/government/publications/apply-for-qualified-teacher-status-qts-if-you-teach-outside-the-uk/routes-to-qualified-teacher-status-qts-for-teachers-and-those-with-teaching-experience-outside-the-uk" %>.

<% end %> -

Decision review

+

Decision review

Applicants who have been declined for QTS are entitled to a review of the decline decision by a Casework Manager.

-

If you would like to request a decision review, you will need to provide:

+

If you would like to request a decision review, you’ll need to provide:

Your request for review must be received within 28 days of receipt of the decision to decline QTS.

-

Email your request for review, including the information required as above, to <%= govuk_link_to t("service.email.enquiries"), "mailto:#{t("service.email.enquiries")}" %>.

-

If you are not satisfied with the outcome of the decision review, you can request a final formal appeal to a senior Teacher Qualification Manager.

diff --git a/app/views/teacher_mailer/application_declined.text.erb b/app/views/teacher_mailer/application_declined.text.erb index 0554fb0fee..2999f39176 100644 --- a/app/views/teacher_mailer/application_declined.text.erb +++ b/app/views/teacher_mailer/application_declined.text.erb @@ -1,25 +1,41 @@ Dear <%= application_form_full_name(@application_form) %> -# Your QTS application has been declined - <%= render "shared/teacher_mailer/reference_number" %> -Thank you for applying for qualified teacher status (QTS) and for your patience while we reviewed your application. +Thank you for applying for QTS in England. Unfortunately, your application has been declined. + +# Reason for decline -Unfortunately, we’re unable to award QTS status. +<% @view_object.declined_reasons.each do |title, reasons| %> +<% if title.present? %> +## <%= title %> +<% end %> -<%- if @further_information_requested -%> +<% reasons.each do |reason| %> +- <%= reason %> +<% end %> +<% end %> + +<% unless @view_object.declined_cannot_reapply? %> # What you can do next -You can sign in to find out why your application was declined: -<%- else -%> -# Why your QTS application was declined +You’ll be able to make a new application for QTS once you've addressed the decline reasons we've given. If you reapply for QTS, you’ll not be able to review the details of your previous application. + +[Apply again](<%= new_teacher_interface_application_form_url %>) + +You may want to [explore other routes to getting QTS](https://www.gov.uk/government/publications/apply-for-qualified-teacher-status-qts-if-you-teach-outside-the-uk/routes-to-qualified-teacher-status-qts-for-teachers-and-those-with-teaching-experience-outside-the-uk). +<% end %> + +# Decision review + +Applicants who have been declined for QTS are entitled to a review of the decline decision by a Casework Manager. +If you would like to request a decision review, you’ll need to provide: -You can sign in to find out why your application was declined: -<%- end -%> +- formal evidence and reasoning as to how you meet the required assessment criteria +- additional information not included in your original application that would support your decision review -<%= new_teacher_session_url %> +Your request for review must be received within 28 days of receipt of the decision to decline QTS. Email your request for review, including the information required as above, to <%= t("service.email.enquiries") %>. -<%= render "shared/teacher_mailer/help_us_to_improve_this_service" %> +If you are not satisfied with the outcome of the decision review, you can request a final formal appeal to a senior Teacher Qualification Manager. <%= render "shared/teacher_mailer/footer" %> diff --git a/config/locales/mailer.en.yml b/config/locales/mailer.en.yml index f1e6cd35bd..41ce1cc8cf 100644 --- a/config/locales/mailer.en.yml +++ b/config/locales/mailer.en.yml @@ -9,7 +9,7 @@ en: application_awarded: subject: Your QTS application was successful application_declined: - subject: Your QTS application has been declined + subject: Your QTS application was unsuccessful application_not_submitted: subject: 0: Your draft QTS application will be deleted in 2 weeks diff --git a/spec/mailers/teacher_mailer_spec.rb b/spec/mailers/teacher_mailer_spec.rb index d2ca15405a..aa19157b5e 100644 --- a/spec/mailers/teacher_mailer_spec.rb +++ b/spec/mailers/teacher_mailer_spec.rb @@ -58,7 +58,7 @@ describe "#subject" do subject(:subject) { mail.subject } - it { is_expected.to eq("Your QTS application has been declined") } + it { is_expected.to eq("Your QTS application was unsuccessful") } end describe "#to" do @@ -72,30 +72,10 @@ it { is_expected.to include("Dear First Last") } it { is_expected.to include("abc") } - it do - is_expected.to include( - "You can sign in to find out why your application was declined:", - ) - end + it { is_expected.to include("Reason for decline") } end it_behaves_like "an observable mailer", "application_declined" - - context "further information requested" do - let(:assessment) do - create(:assessment, :with_further_information_request) - end - - describe "#body" do - subject(:body) { mail.body.encoded } - - it do - is_expected.to include( - "You can sign in to find out why your application was declined:", - ) - end - end - end end describe "#application_not_submitted" do diff --git a/spec/views/teacher_interface/application_forms_show_spec.rb b/spec/views/teacher_interface/application_forms_show_spec.rb index 5ec9128358..ac4b5144e2 100644 --- a/spec/views/teacher_interface/application_forms_show_spec.rb +++ b/spec/views/teacher_interface/application_forms_show_spec.rb @@ -44,8 +44,8 @@ end it { is_expected.to match(/Your QTS application has been declined/) } - it { is_expected.to match(/Why your application was declined/) } - it { is_expected.to match(/you can make a new application in future/) } + it { is_expected.to match(/Reason for decline/) } + it { is_expected.to match(/You’ll be able to make a new application/) } end context "and a further information request" do @@ -62,7 +62,7 @@ end it { is_expected.to match(/Your QTS application has been declined/) } - it { is_expected.to match(/you can make a new application in future/) } + it { is_expected.to match(/You’ll be able to make a new application/) } it "does not show the assessor notes to the applicant" do expect(subject).not_to match(/A note/)