demarches-normaliennes/app/views/administrateurs/mail_templates/index.html.haml

27 lines
1.2 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

= render partial: 'administrateurs/breadcrumbs',
locals: { steps: [['Démarches', admin_procedures_path],
["#{@procedure.libelle.truncate_words(10)}", admin_procedure_path(@procedure)],
["Configuration des emails"]] }
.fr-container
.fr-grid-row.fr-grid-row--gutters
.fr-col-12
%h1 Configuration des emails
- if @procedure.accuse_lecture?
= render Dsfr::AlertComponent.new(state: :info, size: :sm) do |c|
- c.with_body do
%p
L'accusé de lecture est activé sur cette démarche. Dans ce contexte, les emails « dacceptation », « de rejet » et de « classement sans suite », ne sont pas modifiables afin de s'assurer que la décision finale reste masquée pour l'usager.
- @mail_templates.each do |mail_template|
.fr-col-md-6.fr-col-12
= render Procedure::EmailTemplateCardComponent.new(email_template: mail_template)
.padded-fixed-footer
.fixed-footer
.fr-container
.fr-grid-row
.fr-col-12.fr-pb-2w
= link_to admin_procedure_path(id: @procedure), class: 'fr-link fr-icon-arrow-left-line fr-link--icon-left fr-mb-2w' do
Revenir à la démarche