Attestation: fix attestation_template_admin_link
This commit is contained in:
parent
7c0f621611
commit
523df76ecb
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue