2021-11-25 16:26:55 +01:00
|
|
|
= render partial: 'administrateurs/breadcrumbs',
|
2020-08-06 16:32:51 +02:00
|
|
|
locals: { steps: [link_to('Démarches', admin_procedures_path),
|
|
|
|
link_to("#{@procedure.libelle}", admin_procedure_path(@procedure)), "Configuration des emails"] }
|
|
|
|
|
|
|
|
.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'
|