2018-11-20 11:57:51 +01:00
|
|
|
|
class UserMailerPreview < ActionMailer::Preview
|
2018-05-23 11:27:33 +02:00
|
|
|
|
def new_account_warning
|
2018-12-20 16:49:56 +01:00
|
|
|
|
UserMailer.new_account_warning(user)
|
|
|
|
|
end
|
|
|
|
|
|
2020-02-11 18:17:09 +01:00
|
|
|
|
def new_account_warning___with_procedure
|
|
|
|
|
procedure = Procedure.new(libelle: 'Dotation d’Équipement des Territoires Ruraux - Exercice 2019', path: 'dotation-etr')
|
|
|
|
|
UserMailer.new_account_warning(user, procedure)
|
|
|
|
|
end
|
|
|
|
|
|
2021-10-26 13:36:14 +02:00
|
|
|
|
def ask_for_merge
|
|
|
|
|
UserMailer.ask_for_merge(user, 'dircab@territoires.gouv.fr')
|
2019-07-09 17:08:27 +02:00
|
|
|
|
end
|
|
|
|
|
|
2021-11-17 16:21:55 +01:00
|
|
|
|
def france_connect_merge_confirmation
|
2021-11-23 10:54:59 +01:00
|
|
|
|
UserMailer.france_connect_merge_confirmation('new.exemple.fr', '123456', 15.minutes.from_now)
|
2021-11-17 16:21:55 +01:00
|
|
|
|
end
|
|
|
|
|
|
2022-06-23 13:51:58 +02:00
|
|
|
|
def send_archive
|
|
|
|
|
UserMailer.send_archive(Instructeur.first, Procedure.first, Archive.first)
|
|
|
|
|
end
|
|
|
|
|
|
2022-10-06 15:25:30 +02:00
|
|
|
|
def invite_instructeur
|
|
|
|
|
UserMailer.invite_instructeur(user, 'aedfa0d0')
|
|
|
|
|
end
|
|
|
|
|
|
2024-07-10 10:57:26 +02:00
|
|
|
|
def invite_tiers
|
2024-07-11 17:50:02 +02:00
|
|
|
|
UserMailer.invite_tiers(user, 'aedfa0d0', Dossier.first)
|
2024-07-10 10:57:26 +02:00
|
|
|
|
end
|
|
|
|
|
|
2023-09-04 12:07:04 +02:00
|
|
|
|
def invite_gestionnaire
|
|
|
|
|
groupe_gestionnaire = GroupeGestionnaire.new(name: 'Root admins group')
|
|
|
|
|
UserMailer.invite_gestionnaire(user, 'aedfa0d0', groupe_gestionnaire)
|
2023-08-25 22:53:30 +02:00
|
|
|
|
end
|
|
|
|
|
|
2023-11-03 10:39:41 +01:00
|
|
|
|
def notify_inactive_close_to_deletion
|
|
|
|
|
UserMailer.notify_inactive_close_to_deletion(user)
|
|
|
|
|
end
|
|
|
|
|
|
2024-02-15 11:09:00 +01:00
|
|
|
|
def notify_after_closing
|
2024-07-01 10:25:49 +02:00
|
|
|
|
UserMailer.notify_after_closing(user, "Cette démarche est close")
|
2024-02-15 11:09:00 +01:00
|
|
|
|
end
|
|
|
|
|
|
2018-12-20 16:49:56 +01:00
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def user
|
|
|
|
|
User.new(id: 10, email: 'test@exemple.fr')
|
2018-05-23 11:27:33 +02:00
|
|
|
|
end
|
|
|
|
|
end
|