Permet de configurer le mail de réexamen du dossier par l'administrateur

This commit is contained in:
Kara Diaby 2023-11-08 13:41:22 +00:00
parent f692a9e5e4
commit fa874a0ea3
17 changed files with 81 additions and 65 deletions

View file

@ -0,0 +1,27 @@
# == Schema Information
#
# Table name: re_instructed_mails
#
# id :integer not null, primary key
# body :text
# subject :string
# created_at :datetime not null
# updated_at :datetime not null
# procedure_id :integer
#
module Mails
class ReInstructedMail < ApplicationRecord
include MailTemplateConcern
belongs_to :procedure, optional: false
validates :subject, tags: true
validates :body, tags: true
SLUG = "re_instructed_mail"
DEFAULT_TEMPLATE_NAME = "notification_mailer/default_templates/re_instructed_mail"
DISPLAYED_NAME = I18n.t('activerecord.models.mail.re_instructed_mail.under_re_instruction')
DEFAULT_SUBJECT = I18n.t('activerecord.models.mail.re_instructed_mail.default_subject', dossier_number: '--numéro du dossier--', procedure_libelle: '--libellé démarche--')
DOSSIER_STATE = Dossier.states.fetch(:en_instruction)
end
end