Attestation: fix attestation_template_admin_link

This commit is contained in:
Simon Lehericey 2017-06-16 13:18:38 +02:00
parent 7c0f621611
commit 523df76ecb

View file

@ -45,12 +45,12 @@
.procedure-list-element{ class: ('active' if active == 'Prévisualisation') }
Prévisualisation
- if @procedure.locked?
%a#onglet-attestation{ href: url_for(admin_procedure_attestation_template_path(@procedure, format: :pdf)), target: '_blank' }
.procedure-list-element{ class: ('active' if active == 'Attestation') } Attestation
- else
- if !@procedure.locked?
%a#onglet-attestation{ href: url_for(edit_admin_procedure_attestation_template_path(@procedure)) }
.procedure-list-element{ class: ('active' if active == 'Attestation') } Attestation
- elsif @procedure.attestation_template.present?
%a#onglet-attestation{ href: url_for(admin_procedure_attestation_template_path(@procedure, format: :pdf)), target: '_blank' }
.procedure-list-element Attestation
.split-hr-left