-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10705 from demarches-simplifiees/email-expert-nee…
…d-confirmation-ldu ETQ expert, je dois confirmer mon mail
- Loading branch information
Showing
14 changed files
with
122 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
app/views/avis_mailer/avis_invitation_and_confirm_email.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
- content_for(:title, 'Invitation à donner votre avis') | ||
|
||
- content_for(:footer) do | ||
Merci de ne pas répondre à cet email. Donnez votre avis | ||
= link_to("sur #{Current.application_name}", @url) | ||
ou | ||
= succeed '.' do | ||
= mail_to(@avis.claimant.email, "contactez la personne qui vous a invité") | ||
|
||
%p | ||
Bonjour, | ||
|
||
%p | ||
Vous avez été invité par | ||
%strong= @avis.claimant.email | ||
= "à donner votre avis sur le dossier nº #{@avis.dossier.id} de la démarche :" | ||
%strong= @avis.procedure.libelle | ||
|
||
%p | ||
= "#{@avis.claimant.email} vous a écrit :" | ||
%br | ||
%p{ style: "padding: 8px; color: #333333; background-color: #EEEEEE; font-size: 14px;" } | ||
= @avis.introduction | ||
|
||
- if @avis.expert.user.active? | ||
%p | ||
= round_button('Confirmez votre adresse email pour donner votre avis', users_confirm_email_url(token: @token), :primary) | ||
- else | ||
%p | ||
= round_button("Inscrivez-vous pour donner votre avis", @url, :primary) | ||
|
||
|
||
= render partial: "layouts/mailers/signature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
- content_for(:title, "Vérification de votre mail sur #{Current.application_name}") | ||
|
||
%p | ||
Bonjour, | ||
|
||
%p | ||
Votre précédente confirmation de mail n'a pas fonctionné, vous pouvez essayer de nouveau en cliquant sur ce bouton : | ||
= round_button 'Je confirme', users_confirm_email_url(token: @token), :primary | ||
|
||
%p | ||
Vous pouvez aussi utiliser ce lien : | ||
= link_to(users_confirm_email_url(token: @token), users_confirm_email_url(token: @token)) | ||
|
||
%p | ||
Nous restons à votre disposition si vous avez besoin d’accompagnement à l'adresse #{link_to CONTACT_EMAIL, "mailto:#{CONTACT_EMAIL}"}. | ||
|
||
|
||
= render partial: "layouts/mailers/signature" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters