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
|
|
|
["Configuration des emails"]] }
|
2020-08-06 16:32:51 +02:00
|
|
|
|
|
|
|
.container
|
|
|
|
- @mail_templates.each do |mail_template|
|
|
|
|
.card
|
|
|
|
.flex.justify-between
|
|
|
|
%div
|
|
|
|
.card-title= mail_template.class.const_get(:DISPLAYED_NAME)
|
2020-08-25 11:40:24 +02:00
|
|
|
- if mail_template.updated_at.blank?
|
|
|
|
%p.notice= mail_template.class.const_get(:DISPLAYED_NAME) === 'Accusé de réception' ? 'Personnalisé' : 'Modèle standard'
|
|
|
|
- else
|
|
|
|
%span.badge.baseline modifié le #{mail_template.updated_at.strftime('%d-%m-%Y')}
|
|
|
|
|
2020-08-06 16:32:51 +02:00
|
|
|
%div
|
|
|
|
= link_to 'Modifier', edit_admin_procedure_mail_template_path(@procedure, mail_template.class.const_get(:SLUG)), class: 'button'
|