Use our font in pdf
This commit is contained in:
parent
1e1ae1ce3b
commit
34730eba2b
12 changed files with 89 additions and 17 deletions
21
app/models/pdf_documents/customer_report.rb
Normal file
21
app/models/pdf_documents/customer_report.rb
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
module PdfDocuments
|
||||
class CustomerReport < Base
|
||||
private
|
||||
|
||||
def generate
|
||||
heading1 @params.report.name
|
||||
|
||||
@params.report.elements.each do |element|
|
||||
heading2 element.title
|
||||
text element.path
|
||||
rich_text element.description_html
|
||||
|
||||
element.success_criteria.each do |success_criterion|
|
||||
text success_criterion.title
|
||||
rich_text success_criterion.description_html
|
||||
rich_text success_criterion.comment_html
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue