mailers: move default templates to a specific subdirectory
It makes more understandable that they are templates (and not views rendered directly by Rails).
This commit is contained in:
parent
f32357f527
commit
45abb6ebc2
12 changed files with 12 additions and 12 deletions
|
@ -12,9 +12,9 @@ module Mails
|
|||
def self.default_template_name_for_procedure(procedure)
|
||||
attestation_template = procedure.attestation_template
|
||||
if attestation_template&.activated?
|
||||
"notification_mailer/closed_mail_with_attestation"
|
||||
"notification_mailer/default_templates/closed_mail_with_attestation"
|
||||
else
|
||||
"notification_mailer/closed_mail"
|
||||
"notification_mailer/default_templates/closed_mail"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@ module Mails
|
|||
belongs_to :procedure
|
||||
|
||||
SLUG = "initiated_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/initiated_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/initiated_mail"
|
||||
DISPLAYED_NAME = 'Accusé de réception'
|
||||
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- a bien été reçu (--libellé démarche--)'
|
||||
DOSSIER_STATE = Dossier.states.fetch(:en_construction)
|
||||
|
|
|
@ -5,7 +5,7 @@ module Mails
|
|||
belongs_to :procedure
|
||||
|
||||
SLUG = "received_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/received_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/received_mail"
|
||||
DISPLAYED_NAME = 'Accusé de passage en instruction'
|
||||
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- va être instruit (--libellé démarche--)'
|
||||
DOSSIER_STATE = Dossier.states.fetch(:en_instruction)
|
||||
|
|
|
@ -5,7 +5,7 @@ module Mails
|
|||
belongs_to :procedure
|
||||
|
||||
SLUG = "refused_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/refused_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/refused_mail"
|
||||
DISPLAYED_NAME = 'Accusé de rejet du dossier'
|
||||
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- a été refusé (--libellé démarche--)'
|
||||
DOSSIER_STATE = Dossier.states.fetch(:refuse)
|
||||
|
|
|
@ -5,7 +5,7 @@ module Mails
|
|||
belongs_to :procedure
|
||||
|
||||
SLUG = "without_continuation"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/without_continuation_mail"
|
||||
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/without_continuation_mail"
|
||||
DISPLAYED_NAME = 'Accusé de classement sans suite'
|
||||
DEFAULT_SUBJECT = 'Votre dossier nº --numéro du dossier-- a été classé sans suite (--libellé démarche--)'
|
||||
DOSSIER_STATE = Dossier.states.fetch(:sans_suite)
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
%p
|
||||
À tout moment, vous pouvez consulter votre dossier et les éventuels messages de l'administration à cette adresse : --lien dossier--
|
||||
|
||||
= render partial: "notification_mailer/signature"
|
||||
= render partial: "notification_mailer/default_templates/signature"
|
|
@ -10,4 +10,4 @@
|
|||
%p
|
||||
À tout moment, vous pouvez consulter votre dossier et les éventuels messages de l'administration à cette adresse : --lien dossier--
|
||||
|
||||
= render partial: "notification_mailer/signature"
|
||||
= render partial: "notification_mailer/default_templates/signature"
|
|
@ -7,4 +7,4 @@
|
|||
%p
|
||||
À tout moment, vous pouvez consulter votre dossier et les éventuels messages de l'administration à cette adresse : --lien dossier--
|
||||
|
||||
= render partial: "notification_mailer/signature"
|
||||
= render partial: "notification_mailer/default_templates/signature"
|
|
@ -4,4 +4,4 @@
|
|||
%p
|
||||
Votre administration vous confirme la bonne réception de votre dossier nº --numéro du dossier--. Celui-ci sera instruit dans le délai légal déclaré par votre interlocuteur.
|
||||
|
||||
= render partial: "notification_mailer/signature"
|
||||
= render partial: "notification_mailer/default_templates/signature"
|
|
@ -10,4 +10,4 @@
|
|||
%p
|
||||
Pour en savoir plus sur le motif du refus, vous pouvez consulter votre dossier et les éventuels messages de l'administration à cette adresse : --lien dossier--
|
||||
|
||||
= render partial: "notification_mailer/signature"
|
||||
= render partial: "notification_mailer/default_templates/signature"
|
|
@ -10,4 +10,4 @@
|
|||
%p
|
||||
Pour en savoir plus sur les raisons de ce classement sans suite, vous pouvez consulter votre dossier et les éventuels messages de l'administration à cette adresse : --lien dossier--
|
||||
|
||||
= render partial: "notification_mailer/signature"
|
||||
= render partial: "notification_mailer/default_templates/signature"
|
Loading…
Add table
Reference in a new issue