fix email content
This commit is contained in:
parent
57dfe2b0f6
commit
2f1259709a
4 changed files with 31 additions and 8 deletions
|
@ -2,17 +2,22 @@
|
||||||
= render 'layouts/mailers/logo', url: @logo_url
|
= render 'layouts/mailers/logo', url: @logo_url
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Bonjour,
|
= t("layouts.mailers.for_tiers.good_morning")
|
||||||
|
|
||||||
%p
|
%p
|
||||||
Nous vous informons que le dossier nº
|
= t("layouts.mailers.for_tiers.first_part",
|
||||||
= number_with_delimiter(@dossier.id)
|
dossier_id: number_with_delimiter(@dossier.id),
|
||||||
rempli en votre nom par #{@dossier.mandataire_first_name}
|
mandataire_first_name: @dossier.mandataire_first_name,
|
||||||
#{@dossier.mandataire_last_name} sur la démarche
|
mandataire_last_name: @dossier.mandataire_last_name)
|
||||||
|
|
||||||
%span{ :style => "font-weight: bold;" }
|
%span{ :style => "font-weight: bold;" }
|
||||||
= @dossier.procedure.libelle
|
= @dossier.procedure.libelle
|
||||||
est passé en phase #{t("instructeurs.dossiers.decisions_rendues_block.without_email.#{@dossier.state}")} le #{l(@dossier.updated_at.to_date)}.
|
|
||||||
%p= "Pour en savoir plus, veuillez vous rapprocher de #{mail_to(@dossier.user.email)}."
|
= t("layouts.mailers.for_tiers.#{@dossier.state}", processed_at: l(@dossier.updated_at.to_date) )
|
||||||
|
|
||||||
|
%p
|
||||||
|
= t("layouts.mailers.for_tiers.second_part")
|
||||||
|
= "#{mail_to(@dossier.user.email)}."
|
||||||
|
|
||||||
%p
|
%p
|
||||||
= t(:best_regards, scope: [:views, :shared, :greetings])
|
= t(:best_regards, scope: [:views, :shared, :greetings])
|
||||||
|
|
|
@ -14,3 +14,12 @@ en:
|
||||||
schedule: "Schedule :"
|
schedule: "Schedule :"
|
||||||
signature:
|
signature:
|
||||||
team: "The team"
|
team: "The team"
|
||||||
|
for_tiers:
|
||||||
|
good_morning: Good morning,
|
||||||
|
first_part: We inform you that file no. %{dossier_id}, completed on your behalf by %{mandataire_first_name} %{mandataire_last_name}, on the procedure
|
||||||
|
second_part: To find out more, please contact
|
||||||
|
en_construction: has been submited %{processed_at}.
|
||||||
|
en_instruction: has been received and taken care of on %{processed_at}. The administration is reviewing your file.
|
||||||
|
accepte: has been accepted on %{processed_at}.
|
||||||
|
refuse: has been refused on %{processed_at}.
|
||||||
|
sans_suite: has been closed without continuation on %{processed_at}.
|
||||||
|
|
|
@ -15,3 +15,12 @@ fr:
|
||||||
schedule: "Horaires :"
|
schedule: "Horaires :"
|
||||||
signature:
|
signature:
|
||||||
team: "L’équipe"
|
team: "L’équipe"
|
||||||
|
for_tiers:
|
||||||
|
good_morning: Bonjour,
|
||||||
|
first_part: Nous vous informons que le dossier nº %{dossier_id}, rempli en votre nom par %{mandataire_first_name} %{mandataire_last_name}, sur la démarche
|
||||||
|
second_part: Pour en savoir plus, veuillez vous rapprocher de
|
||||||
|
en_construction: a été déposé le %{processed_at}.
|
||||||
|
en_instruction: a bien été reçu et pris en charge le %{processed_at}. Il va maintenant être examiné par le service.
|
||||||
|
accepte: a été accepté le %{processed_at}.
|
||||||
|
refuse: a été refusé le %{processed_at}.
|
||||||
|
sans_suite: a été classé sans suite le %{processed_at}.
|
||||||
|
|
|
@ -10,7 +10,7 @@ RSpec.describe NotificationMailer, type: :mailer do
|
||||||
|
|
||||||
it { expect(subject.subject).to include("Votre dossier rempli par le mandataire #{dossier_for_tiers.mandataire_first_name} #{dossier_for_tiers.mandataire_last_name} a été mis à jour") }
|
it { expect(subject.subject).to include("Votre dossier rempli par le mandataire #{dossier_for_tiers.mandataire_first_name} #{dossier_for_tiers.mandataire_last_name} a été mis à jour") }
|
||||||
it { expect(subject.to).to eq([dossier_for_tiers.individual.email]) }
|
it { expect(subject.to).to eq([dossier_for_tiers.individual.email]) }
|
||||||
it { expect(subject.body).to include("Pour en savoir plus, veuillez vous rapprocher de <a href=\"mailto:#{dossier_for_tiers.user.email}\">#{dossier_for_tiers.user.email}</a>.") }
|
it { expect(subject.body).to include("Pour en savoir plus, veuillez vous rapprocher de\r\n<a href=\"mailto:#{dossier_for_tiers.user.email}\">#{dossier_for_tiers.user.email}</a>.") }
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'send_en_construction_notification' do
|
describe 'send_en_construction_notification' do
|
||||||
|
|
Loading…
Reference in a new issue