2020-09-08 12:35:44 +02:00
|
|
|
- content_for(:root_class, 'scroll-margins-for-sticky-footer')
|
2020-08-25 11:40:24 +02:00
|
|
|
- if params[:id] == 'closed_mail'
|
|
|
|
= render partial: 'admin/closed_mail_template_attestation_inconsistency_alert'
|
|
|
|
|
2021-11-25 16:26:55 +01:00
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2022-08-17 13:53:07 +02:00
|
|
|
locals: { steps: [['Démarches', admin_procedures_path],
|
2022-09-09 13:08:24 +02:00
|
|
|
[@procedure.libelle.truncate_words(10), admin_procedure_path(@procedure)],
|
2022-11-02 10:03:10 +01:00
|
|
|
["Configuration des emails", admin_procedure_mail_templates_path(@procedure)],
|
2022-08-17 13:53:07 +02:00
|
|
|
[@mail_template.class.const_get(:DISPLAYED_NAME)]] }
|
2020-08-25 11:40:24 +02:00
|
|
|
|
|
|
|
.procedure-form
|
|
|
|
.procedure-form__columns.container
|
|
|
|
|
|
|
|
= form_for @mail_template,
|
|
|
|
url: admin_procedure_mail_template_path(@procedure, @mail_template.class.const_get(:SLUG)),
|
|
|
|
method: :put,
|
2022-12-16 14:56:46 +01:00
|
|
|
html: { class: 'form form-ds-fr-white procedure-form__column--form' } do |f|
|
2020-08-25 11:40:24 +02:00
|
|
|
|
|
|
|
%h1.page-title= @mail_template.class.const_get(:DISPLAYED_NAME)
|
2022-11-02 10:03:10 +01:00
|
|
|
= render partial: 'form', locals: { f: f, tags: @mail_template.tags }
|
2020-08-25 11:40:24 +02:00
|
|
|
.procedure-form__actions.sticky--bottom
|
|
|
|
.actions-right
|
|
|
|
= f.submit 'Enregistrer', class: 'button primary send'
|
|
|
|
|
|
|
|
.procedure-form__column--preview
|
|
|
|
.procedure-form__preview.sticky--top
|
|
|
|
%h3
|
|
|
|
.procedure-form__preview-title
|
|
|
|
Aperçu
|
|
|
|
.notice
|
|
|
|
Cet aperçu est mis à jour après chaque sauvegarde.
|
|
|
|
.procedure-preview
|
2022-11-02 10:03:10 +01:00
|
|
|
= render partial: 'apercu', locals: { procedure: @mail_template.procedure }
|