[#1563] Display attestation / closed mail discrepancy alert in admin interface

- When changing emails
- When changing attestation
- As a safety net, on summary page
This commit is contained in:
Frederic Merizen 2018-04-03 14:22:53 +02:00
parent a2ffc4357d
commit b27218c7c4
4 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,4 @@
= render partial: 'admin/closed_mail_template_attestation_inconsistency_alert'
#attestation-template-edit.row.white-back #attestation-template-edit.row.white-back
= form_for @attestation_template, url: admin_procedure_attestation_template_path do |f| = form_for @attestation_template, url: admin_procedure_attestation_template_path do |f|
.row .row

View file

@ -1,3 +1,5 @@
- if params[:id] == 'closed_mail'
= render partial: 'admin/closed_mail_template_attestation_inconsistency_alert'
.white-back .white-back
%h3 %h3
= @mail_template.class.const_get(:DISPLAYED_NAME) = @mail_template.class.const_get(:DISPLAYED_NAME)

View file

@ -1,3 +1,4 @@
= render partial: 'admin/closed_mail_template_attestation_inconsistency_alert'
#custom-mails #custom-mails
.wrapper .wrapper
%h1 E-mails personnalisables %h1 E-mails personnalisables

View file

@ -1,3 +1,4 @@
= render partial: 'admin/closed_mail_template_attestation_inconsistency_alert'
.row.white-back .row.white-back
#procedure_show #procedure_show
- if @facade.procedure.brouillon? - if @facade.procedure.brouillon?