Merge pull request #2025 from betagouv/fix-886

Fix #886
This commit is contained in:
gregoirenovel 2018-06-01 14:10:44 +02:00 committed by GitHub
commit 23e909928a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
class DeviseUserMailer < Devise::Mailer
helper :application # gives access to all helpers defined within `application_helper`.
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
default template_path: 'devise/mailer' # to make sure that your mailer uses the devise views
default template_path: 'devise_mailer' # to make sure that your mailer uses the devise views
layout 'mailers/layout'
end

View file

@ -12,9 +12,9 @@ module Mails
def self.default_template_name_for_procedure(procedure)
attestation_template = procedure.attestation_template
if attestation_template&.activated?
"mails/closed_mail_with_attestation"
"notification_mailer/closed_mail_with_attestation"
else
"mails/closed_mail"
"notification_mailer/closed_mail"
end
end
end

View file

@ -5,7 +5,7 @@ module Mails
belongs_to :procedure
SLUG = "initiated_mail"
DEFAULT_TEMPLATE_NAME = "mails/initiated_mail"
DEFAULT_TEMPLATE_NAME = "notification_mailer/initiated_mail"
DISPLAYED_NAME = 'Accusé de réception'
DEFAULT_SUBJECT = 'Votre dossier demarches-simplifiees.fr nº --numéro du dossier-- a bien été reçu'
DOSSIER_STATE = 'en_construction'

View file

@ -5,7 +5,7 @@ module Mails
belongs_to :procedure
SLUG = "received_mail"
DEFAULT_TEMPLATE_NAME = "mails/received_mail"
DEFAULT_TEMPLATE_NAME = "notification_mailer/received_mail"
DISPLAYED_NAME = 'Accusé de passage en instruction'
DEFAULT_SUBJECT = 'Votre dossier demarches-simplifiees.fr nº --numéro du dossier-- va être instruit'
DOSSIER_STATE = 'en_instruction'

View file

@ -5,7 +5,7 @@ module Mails
belongs_to :procedure
SLUG = "refused_mail"
DEFAULT_TEMPLATE_NAME = "mails/refused_mail"
DEFAULT_TEMPLATE_NAME = "notification_mailer/refused_mail"
DISPLAYED_NAME = 'Accusé de rejet du dossier'
DEFAULT_SUBJECT = 'Votre dossier demarches-simplifiees.fr nº --numéro du dossier-- a été refusé'
DOSSIER_STATE = 'refuse'

View file

@ -5,7 +5,7 @@ module Mails
belongs_to :procedure
SLUG = "without_continuation"
DEFAULT_TEMPLATE_NAME = "mails/without_continuation_mail"
DEFAULT_TEMPLATE_NAME = "notification_mailer/without_continuation_mail"
DISPLAYED_NAME = 'Accusé de classement sans suite'
DEFAULT_SUBJECT = 'Votre dossier demarches-simplifiees.fr nº --numéro du dossier-- a été classé sans suite'
DOSSIER_STATE = 'sans_suite'