AttestationTemplate edit: id.nil => new_record?

This commit is contained in:
Simon Lehericey 2017-06-30 12:59:12 +02:00
parent 97fa7d811a
commit 8aaf7df579

View file

@ -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