Skip to content

Commit

Permalink
Update content
Browse files Browse the repository at this point in the history
  • Loading branch information
gms-gs committed Sep 23, 2024
1 parent edea368 commit 227dbb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion app/mailers/candidate_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ def new_offer_made(application_choice)
@provider_name = @course.provider.name
@course_name_and_code = @application_choice.current_course_option.course.name_and_code
@application_form = @application_choice.application_form
@show_deadline_reminder = (CycleTimetable.decline_by_default_date - 4.weeks).before? Time.zone.now
email_for_candidate(@application_form, subject: I18n.t('candidate_mailer.new_offer_made.subject', provider_name: @course.provider.name))
end

Expand Down
12 changes: 8 additions & 4 deletions app/views/candidate_mailer/new_offer_made.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ Congratulations! You have an offer from <%= @provider_name %> to study <%= @cour
- <%= condition.text %>
<% end %>

Contact <%= @provider_name %> if you have any questions about this.
You will have to pass essential checks before you can start your training.

<% if @show_deadline_reminder %>
If you want to accept this offer, you must do so by <%= I18n.l(CycleTimetable.decline_by_default_date.to_date, format: :no_year) %>. If you have not responded by then, the offer will be automatically declined on your behalf.
<% end %>
These are:
- An enhanced disclosure and barring service (DBS) check. This is a criminal records check to make sure it is safe for you to work with children. If you are from outside of the UK and Ireland then the training provider will request a criminal records check from your home country. A fitness to train to teach check.
- A fitness to train to teach check. These are questions to check your ability to meet teaching standards, both physically and mentally.

The training provider will usually pay for the criminal records checks.

Contact <%= @provider_name %> if you have any questions about this.

[Sign into your account to respond to your offer](<%= candidate_magic_link(@application_form.candidate) %>).
5 changes: 3 additions & 2 deletions spec/mailers/candidate_mailer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,9 @@
)]
end

it 'renders deadline reminder text' do
expect(email.body).to include "If you want to accept this offer, you must do so by #{I18n.l(CycleTimetable.decline_by_default_date.to_date, format: :no_year)}. If you have not responded by then, the offer will be automatically declined on your behalf."
it 'renders essential checks text' do
expect(email.body).to include "An enhanced disclosure and barring service (DBS) check. This is a criminal records check to make sure it is safe for you to work with children. If you are from outside of the UK and Ireland then the training provider will request a criminal records check from your home country. A fitness to train to teach check."
expect(email.body).to include "A fitness to train to teach check. These are questions to check your ability to meet teaching standards, both physically and mentally."
end
end

Expand Down

0 comments on commit 227dbb2

Please sign in to comment.