diff --git a/app/views/admin/attestation_templates/edit.html.haml b/app/views/admin/attestation_templates/edit.html.haml index 9b54d4def..29bf812d4 100644 --- a/app/views/admin/attestation_templates/edit.html.haml +++ b/app/views/admin/attestation_templates/edit.html.haml @@ -66,7 +66,7 @@ - if @attestation_template.activated %button.btn.btn-warning{ formaction: admin_procedure_attestation_template_disactivate_path } désactiver l'attestation - - if @attestation_template.id.nil? || !@attestation_template.activated + - if @attestation_template.new_record? || !@attestation_template.activated %button.btn.btn-success Activer l'attestation - else %button.btn.btn-success Enregistrer