Explain to administrateur why the attestation cannot be deactivated

This commit is contained in:
Frederic Merizen 2019-01-17 17:30:54 +01:00 committed by Pierre de La Morinerie
parent 6a9b024a6f
commit a5b29dde97

View file

@ -66,6 +66,12 @@
= f.label :footer, 'Pied de page' = f.label :footer, 'Pied de page'
= f.text_field :footer, class: 'form-control', maxlength: 190 = f.text_field :footer, class: 'form-control', maxlength: 190
- if @attestation_template.activated && @procedure.locked?
.row
.col-md-12
.pull-right
%p.help-block Lattestation ne peut plus être désactivée car la démarche a déjà été publiée.
%button.btn.btn-primary{ formaction: admin_procedure_attestation_template_preview_path, formtarget: '_blank' } Prévisualiser %button.btn.btn-primary{ formaction: admin_procedure_attestation_template_preview_path, formtarget: '_blank' } Prévisualiser
.pull-right .pull-right