Merge pull request #449 from sgmap/Fix_attestation_template_admin_link

Attestation: fix attestation_template_admin_link
This commit is contained in:
LeSim 2017-06-16 15:59:18 +02:00 committed by GitHub
commit d8b9ba14c8

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