From 1bd794a774839483f59827207e69b2b9f1e1e8ea 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 ++ .../edit.html.erb | 16 +++--- .../application_forms/show/_declined.html.erb | 51 +++++++------------ .../application_declined.text.erb | 42 ++++++++++----- config/locales/mailer.en.yml | 2 +- spec/mailers/teacher_mailer_spec.rb | 24 +-------- .../application_forms_show_spec.rb | 6 +-- 7 files changed, 64 insertions(+), 80 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/assessor_interface/assessment_recommendation_decline/edit.html.erb b/app/views/assessor_interface/assessment_recommendation_decline/edit.html.erb index 6726e56540..4c06ccc685 100644 --- a/app/views/assessor_interface/assessment_recommendation_decline/edit.html.erb +++ b/app/views/assessor_interface/assessment_recommendation_decline/edit.html.erb @@ -32,21 +32,21 @@ <% @assessment.sections.not_preliminary.each do |section| %> <% if (selected_failure_reasons = section.selected_failure_reasons).present? %>

<%= t(".assessment_section.#{section.key}") %>

-