2018-01-03 17:11:47 +01:00
|
|
|
class AdministrationMailer < ApplicationMailer
|
2018-01-05 11:16:50 +01:00
|
|
|
layout 'mailers/layout'
|
|
|
|
|
2018-03-20 17:47:37 +01:00
|
|
|
def new_admin_email(admin, administration)
|
2016-02-23 16:51:24 +01:00
|
|
|
@admin = admin
|
2017-12-21 15:04:03 +01:00
|
|
|
@administration = administration
|
2016-02-23 16:51:24 +01:00
|
|
|
|
2018-02-28 17:37:44 +01:00
|
|
|
mail(to: 'tech@demarches-simplifiees.fr',
|
2018-02-28 16:01:20 +01:00
|
|
|
subject: "Création d'un compte Admin demarches-simplifiees.fr")
|
2016-02-23 16:51:24 +01:00
|
|
|
end
|
2018-01-05 11:16:50 +01:00
|
|
|
|
2018-01-11 14:17:37 +01:00
|
|
|
def invite_admin(admin, reset_password_token)
|
|
|
|
@reset_password_token = reset_password_token
|
2018-03-23 18:06:17 +01:00
|
|
|
@admin = admin
|
2018-01-11 14:17:37 +01:00
|
|
|
mail(to: admin.email,
|
2018-02-28 16:01:20 +01:00
|
|
|
subject: "demarches-simplifiees.fr - Activez votre compte administrateur",
|
2018-03-13 17:15:48 +01:00
|
|
|
reply_to: "contact@demarches-simplifiees.fr")
|
2018-01-11 14:17:37 +01:00
|
|
|
end
|
|
|
|
|
2018-03-27 13:52:34 +02:00
|
|
|
def refuse_admin(admin_email)
|
|
|
|
mail(to: admin_email,
|
|
|
|
subject: "demarches-simplifiees.fr - Votre demande de compte a été refusée",
|
|
|
|
reply_to: "contact@demarches-simplifiees.fr")
|
|
|
|
end
|
|
|
|
|
2018-01-05 11:16:50 +01:00
|
|
|
def dubious_procedures(procedures_and_type_de_champs)
|
|
|
|
@procedures_and_type_de_champs = procedures_and_type_de_champs
|
2018-02-28 17:37:44 +01:00
|
|
|
mail(to: 'equipe@demarches-simplifiees.fr',
|
2018-01-05 11:16:50 +01:00
|
|
|
subject: "[RGS] De nouvelles procédures comportent des champs interdits")
|
|
|
|
end
|
2016-02-23 16:51:24 +01:00
|
|
|
end
|