Improve the mailers readability
This commit is contained in:
parent
740a83f665
commit
a60f1c434e
6 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,7 @@ class AdministrateurMailer < ApplicationMailer
|
|||
@administrateur = administrateur
|
||||
@reset_password_token = reset_password_token
|
||||
@expiration_date = @administrateur.reset_password_sent_at + Devise.reset_password_within
|
||||
|
||||
mail(to: administrateur.email,
|
||||
subject: "demarches-simplifiees.fr - N'oubliez pas d'activer votre compte administrateur",
|
||||
reply_to: "contact@demarches-simplifiees.fr")
|
||||
|
|
|
@ -12,6 +12,7 @@ class AdministrationMailer < ApplicationMailer
|
|||
def invite_admin(admin, reset_password_token)
|
||||
@reset_password_token = reset_password_token
|
||||
@admin = admin
|
||||
|
||||
mail(to: admin.email,
|
||||
subject: "demarches-simplifiees.fr - Activez votre compte administrateur",
|
||||
reply_to: "contact@demarches-simplifiees.fr")
|
||||
|
@ -25,6 +26,7 @@ class AdministrationMailer < ApplicationMailer
|
|||
|
||||
def dubious_procedures(procedures_and_type_de_champs)
|
||||
@procedures_and_type_de_champs = procedures_and_type_de_champs
|
||||
|
||||
mail(to: 'equipe@demarches-simplifiees.fr',
|
||||
subject: "[RGS] De nouvelles procédures comportent des champs interdits")
|
||||
end
|
||||
|
|
|
@ -2,6 +2,7 @@ class AvisMailer < ApplicationMailer
|
|||
def avis_invitation(avis)
|
||||
@avis = avis
|
||||
email = @avis.gestionnaire&.email || @avis.email
|
||||
|
||||
mail(to: email, subject: "Donnez votre avis sur le dossier nº #{@avis.dossier.id} (#{@avis.dossier.procedure.libelle})")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,11 +3,13 @@ class DossierMailer < ApplicationMailer
|
|||
|
||||
def notify_deletion_to_user(deleted_dossier, to_email)
|
||||
@deleted_dossier = deleted_dossier
|
||||
|
||||
mail(to: to_email, subject: "Votre dossier n° #{@deleted_dossier.dossier_id} a bien été supprimé")
|
||||
end
|
||||
|
||||
def notify_deletion_to_administration(deleted_dossier, to_email)
|
||||
@deleted_dossier = deleted_dossier
|
||||
|
||||
mail(to: to_email, subject: "Le dossier n° #{@deleted_dossier.dossier_id} a été supprimé à la demande de l'usager")
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,6 +4,7 @@ class GestionnaireMailer < ApplicationMailer
|
|||
def invite_gestionnaire(gestionnaire, reset_password_token)
|
||||
@reset_password_token = reset_password_token
|
||||
@gestionnaire = gestionnaire
|
||||
|
||||
mail(to: gestionnaire.email,
|
||||
subject: "demarches-simplifiees.fr - Activez votre compte accompagnateur",
|
||||
reply_to: "contact@demarches-simplifiees.fr")
|
||||
|
@ -16,6 +17,7 @@ class GestionnaireMailer < ApplicationMailer
|
|||
def last_week_overview(gestionnaire)
|
||||
headers['X-mailjet-campaign'] = 'last_week_overview'
|
||||
overview = gestionnaire.last_week_overview
|
||||
|
||||
send_mail gestionnaire.email, overview, 'Vos activités sur demarches-simplifiees.fr'
|
||||
end
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@ class UserMailer < ApplicationMailer
|
|||
|
||||
def new_account_warning(user)
|
||||
@user = user
|
||||
|
||||
mail(to: user.email, subject: "Création de compte")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue