Skip to content

Commit

Permalink
Merge pull request #2562 from bitzesty/staging-mailer-subject-signatu…
Browse files Browse the repository at this point in the history
…re-changes

[STAGING] Updates Shortlisted Reminder mailer copy
  • Loading branch information
DaniBitZesty authored Sep 1, 2023
2 parents 491a5b3 + 8cc7707 commit f10885a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/mailers/users/shortlisted_reminder_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def notify(form_answer_id, user_id)
@deadline_time = "midnight" if midnight?
@deadline_time = "midday" if midday?

@subject = "King's Awards for Enterprise: Reminder to provide latest financial statements & VAT returns"
@subject = "King's Awards for Enterprise: Reminder to provide latest financial statements & VAT returns - Application ref #{@form_answer.urn}"
send_mail_if_not_bounces ENV['GOV_UK_NOTIFY_API_TEMPLATE_ID'], to: @recipient.email, subject: subject_with_env_prefix(@subject)
end

Expand Down
6 changes: 2 additions & 4 deletions app/views/users/shortlisted_reminder_mailer/notify.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ We are emailing to remind you that you have until

#<%= @deadline_time %> on <%= @deadline %>

to provide the latest financial statements & VAT returns and, if applicable, an explanation of the variance between the estimates and the actuals by following the link below:
to provide the latest financial statements & VAT returns and, if applicable, an explanation of the variance between the estimates and the actuals. Please do this by following the link below:

<%= users_form_answer_figures_and_vat_returns_url(@form_answer) %>

Expand All @@ -21,9 +21,7 @@ If you do not submit the required latest financial information before the deadli
a) any of the actual figures are worse by 10% or more. Please explain the reasons for the difference.
b) the actuals include losses that you did not state on your application form. Please explain the reasons for the losses and how your business is financially viable.

Please note, following the sad death of HM Queen Elizabeth II, His Majesty will be consulted on the future of the Awards, but no immediate decisions will be made.

Yours sincerely,

Nichola Bruno
Head, The King’s Awards for Enterprise Office
Head of The King’s Awards Office
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ p style="font-size: 19px; line-height: 1.315789474; margin: 0 0 30px 0;"
= "#{@deadline_time} on #{@deadline}"

p style="font-size: 19px; line-height: 1.315789474; margin: 0 0 30px 0;"
| to provide the latest financial statements & VAT returns and, if applicable, an explanation of the variance between the estimates and the actuals by following the link below:
| to provide the latest financial statements & VAT returns and, if applicable, an explanation of the variance between the estimates and the actuals. Please do this by following the link below:

p style="font-size: 19px; line-height: 1.315789474; margin: 0 0 30px 0;"
= link_to(users_form_answer_figures_and_vat_returns_url(@form_answer), users_form_answer_figures_and_vat_returns_url(@form_answer))
Expand Down Expand Up @@ -40,13 +40,10 @@ p style="font-size: 19px; line-height: 1.315789474; margin: 0 0 30px 0;"
br
| b) the actuals include losses that you did not state on your application form. Please explain the reasons for the losses and how your business is financially viable.

p style="font-size: 19px; line-height: 1.315789474; margin: 0 0 30px 0;"
| Please note, following the sad death of HM Queen Elizabeth II, His Majesty will be consulted on the future of the Awards, but no immediate decisions will be made.

p style="font-size: 19px; line-height: 1.315789474; margin: 0 0 30px 0;"
| Yours sincerely,
br
br
| Nichola Bruno
br
| Head, The King’s Awards for Enterprise Office
| Head of The King’s Awards Office
2 changes: 1 addition & 1 deletion spec/mailers/users/shortlisted_reminder_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

let(:award_title) { form_answer.decorate.award_application_title }
let(:subject) do
"King's Awards for Enterprise: Reminder to provide latest financial statements & VAT returns"
"King's Awards for Enterprise: Reminder to provide latest financial statements & VAT returns - Application ref #{form_answer.urn}"
end

before do
Expand Down

0 comments on commit f10885a

Please sign in to comment.