mailers: add preview URL to all previewable mailers
This commit is contained in:
parent
f2eaf66a9a
commit
a5f9be00e0
11 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/administrateur_mailer
|
||||||
class AdministrateurMailer < ApplicationMailer
|
class AdministrateurMailer < ApplicationMailer
|
||||||
layout 'mailers/layout'
|
layout 'mailers/layout'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/administration_mailer
|
||||||
class AdministrationMailer < ApplicationMailer
|
class AdministrationMailer < ApplicationMailer
|
||||||
layout 'mailers/layout'
|
layout 'mailers/layout'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/avis_mailer
|
||||||
class AvisMailer < ApplicationMailer
|
class AvisMailer < ApplicationMailer
|
||||||
def avis_invitation(avis)
|
def avis_invitation(avis)
|
||||||
@avis = avis
|
@avis = avis
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/devise_user_mailer
|
||||||
class DeviseUserMailer < Devise::Mailer
|
class DeviseUserMailer < Devise::Mailer
|
||||||
helper :application # gives access to all helpers defined within `application_helper`.
|
helper :application # gives access to all helpers defined within `application_helper`.
|
||||||
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
|
include Devise::Controllers::UrlHelpers # Optional. eg. `confirmation_url`
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/dossier_mailer
|
||||||
class DossierMailer < ApplicationMailer
|
class DossierMailer < ApplicationMailer
|
||||||
layout 'mailers/layout'
|
layout 'mailers/layout'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/gestionnaire_mailer
|
||||||
class GestionnaireMailer < ApplicationMailer
|
class GestionnaireMailer < ApplicationMailer
|
||||||
layout 'mailers/layout'
|
layout 'mailers/layout'
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/invite_mailer
|
||||||
class InviteMailer < ApplicationMailer
|
class InviteMailer < ApplicationMailer
|
||||||
def invite_user(invite)
|
def invite_user(invite)
|
||||||
subject = "Participez à l'élaboration d'un dossier"
|
subject = "Participez à l'élaboration d'un dossier"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/new_attestation_mailer
|
||||||
class NewAttestationMailer < ApplicationMailer
|
class NewAttestationMailer < ApplicationMailer
|
||||||
include Rails.application.routes.url_helpers
|
include Rails.application.routes.url_helpers
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/notification_mailer
|
||||||
|
|
||||||
# A Notification is attached as a Comment to the relevant discussion,
|
# A Notification is attached as a Comment to the relevant discussion,
|
||||||
# then sent by email to the user.
|
# then sent by email to the user.
|
||||||
#
|
#
|
||||||
# The subject and body of a Notification can be customized by each demarche.
|
# The subject and body of a Notification can be customized by each demarche.
|
||||||
|
#
|
||||||
class NotificationMailer < ApplicationMailer
|
class NotificationMailer < ApplicationMailer
|
||||||
def send_dossier_received(dossier)
|
def send_dossier_received(dossier)
|
||||||
send_notification(dossier, dossier.procedure.received_mail_template)
|
send_notification(dossier, dossier.procedure.received_mail_template)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# Preview all emails at http://localhost:3000/rails/mailers/user_mailer
|
||||||
class UserMailer < ApplicationMailer
|
class UserMailer < ApplicationMailer
|
||||||
layout 'mailers/layout'
|
layout 'mailers/layout'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class UserPreview < ActionMailer::Preview
|
class UserMailerPreview < ActionMailer::Preview
|
||||||
def new_account_warning
|
def new_account_warning
|
||||||
UserMailer.new_account_warning(User.first)
|
UserMailer.new_account_warning(User.first)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue