17 lines
858 B
Text
17 lines
858 B
Text
= render partial: 'administrateurs/breadcrumbs',
|
|
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)
|
|
- 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')}
|
|
|
|
%div
|
|
= link_to 'Modifier', edit_admin_procedure_mail_template_path(@procedure, mail_template.class.const_get(:SLUG)), class: 'button'
|