2017-05-31 16:29:51 +02:00
|
|
|
- if dossier.attestation.present?
|
|
|
|
#attestation-recapitulatif.default-data-block
|
|
|
|
.row.show-block.clearfix
|
|
|
|
.header
|
|
|
|
.title
|
|
|
|
.carret-right
|
|
|
|
.carret-down
|
|
|
|
ATTESTATION
|
|
|
|
.details
|
|
|
|
.left
|
|
|
|
= image_tag('pdf.svg', width: '20px')
|
|
|
|
%p.title= dossier.attestation.title
|
|
|
|
%p.delivery Délivrée le #{l(dossier.attestation.created_at, format: '%d %B %Y')}
|
2017-07-06 19:54:16 +02:00
|
|
|
- if user_signed_in? && current_user == dossier.user
|
2018-07-17 11:26:41 +02:00
|
|
|
= link_to 'Télécharger', attestation_dossier_path(dossier), target: '_blank', class: 'btn btn-primary'
|
2017-06-29 15:42:13 +02:00
|
|
|
- else
|
2018-02-21 13:42:11 +01:00
|
|
|
= link_to 'Télécharger', attestation_gestionnaire_dossier_path(dossier.procedure, dossier), target: '_blank', class: 'btn btn-primary'
|