Files
openfoodnetwork/app/views/layouts/pdf.html.haml
Sebastian Castro 213c0dd060 Packing Report: add price and reorder columns
Adds price column
last_name column first because it's used for ordering
2022-05-12 16:54:12 +02:00

33 lines
793 B
Plaintext

!!!
%html
%head
%meta{:content => "charset=UTF-8"}
-# Using wicked_pdf_stylesheet_pack_tag with a new pdf pack was not working when using
-# WickedPdf.new.pdf_from_string cause the css file reference was not absolute
-# So I ended up putting inline css here, so it's included for sure in the PDF
:css
body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
text-align: left;
}
th, td {
padding: 5px;
}
thead {
background-color: #f6f6f6;
border-bottom: 1px solid grey;
}
%body
= yield