Merge pull request #3303 from betagouv/frederic/clarify_blocked_attestation

Explain to administrateur why the attestation cannot be deactivated
This commit is contained in:
Pierre de La Morinerie 2019-01-21 14:14:34 +01:00 committed by GitHub
commit 01f63c25e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,6 +66,12 @@
= f.label :footer, 'Pied de page'
= 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
.pull-right