37 lines
755 B
Plaintext
37 lines
755 B
Plaintext
!!!
|
|
%html{:lang => "fr"}
|
|
%head
|
|
%meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" }
|
|
%title="Impression ordonnance"
|
|
|
|
|
|
= stylesheet_link_tag 'print', :media => "all"
|
|
|
|
|
|
%body
|
|
|
|
|
|
|
|
-if @prescription.done
|
|
#ship_info
|
|
La livraison est prévu le
|
|
=l @prescription.delivery_at
|
|
%h2
|
|
.tel= @prescription.tel
|
|
=@prescription.name
|
|
.date=l @prescription.created_at
|
|
|
|
|
|
-if @prescription.notes?
|
|
.notes
|
|
=simple_format @prescription.notes
|
|
|
|
.file
|
|
|
|
-if @prescription.file?
|
|
-if @prescription.is_pdf?
|
|
#pdf_prescription=link_to "Annexe : scan au format pdf", @prescription.file.url, :target => "_blank"
|
|
|
|
-else
|
|
=image_tag @prescription.file.url, :style => "max-width:100%;max-height:100%;"
|
|
|