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-08-17 13:53:07 +02:00
|
|
|
["Emails", admin_procedure_mail_templates_path(@procedure)],
|
|
|
|
[@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,
|
|
|
|
html: { class: 'form procedure-form__column--form' } do |f|
|
|
|
|
|
|
|
|
%h1.page-title= @mail_template.class.const_get(:DISPLAYED_NAME)
|
|
|
|
= render partial: 'form', locals: { f: f }
|
|
|
|
.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
|
|
|
|
= render partial: 'apercu', locals: { procedure: @procedure }
|