Merge pull request #449 from sgmap/Fix_attestation_template_admin_link
Attestation: fix attestation_template_admin_link
This commit is contained in:
commit
d8b9ba14c8
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