Render attesation apercu inline
This commit is contained in:
parent
32563c3675
commit
5edbc08542
1 changed files with 8 additions and 1 deletions
|
@ -22,7 +22,14 @@ module Instructeurs
|
|||
end
|
||||
|
||||
def apercu_attestation
|
||||
send_data(dossier.build_attestation.pdf.read, filename: 'apercu_attestation.pdf', disposition: 'inline', type: 'application/pdf')
|
||||
@title = dossier.procedure.attestation_template.title
|
||||
@body = dossier.procedure.attestation_template.body
|
||||
@footer = dossier.procedure.attestation_template.footer
|
||||
@created_at = Time.zone.now
|
||||
@logo = dossier.procedure.attestation_template&.proxy_logo
|
||||
@signature = dossier.procedure.attestation_template&.proxy_signature
|
||||
|
||||
render 'admin/attestation_templates/show', formats: [:pdf]
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
Loading…
Reference in a new issue