AttestationTemplate edit: id.nil => new_record?
This commit is contained in:
parent
97fa7d811a
commit
8aaf7df579
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue