From 8aaf7df5793ea1f1795bf39fd67399892ef90fb9 Mon Sep 17 00:00:00 2001 From: Simon Lehericey Date: Fri, 30 Jun 2017 12:59:12 +0200 Subject: [PATCH] AttestationTemplate edit: id.nil => new_record? --- app/views/admin/attestation_templates/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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