Permet de configurer le mail de réexamen du dossier par l'administrateur
This commit is contained in:
parent
f692a9e5e4
commit
fa874a0ea3
17 changed files with 81 additions and 65 deletions
27
app/models/mails/re_instructed_mail.rb
Normal file
27
app/models/mails/re_instructed_mail.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue