cosmetics
This commit is contained in:
parent
e1dfb14d4d
commit
650bec3f57
2 changed files with 3 additions and 23 deletions
|
|
@ -101,7 +101,6 @@ module PdfDocuments
|
||||||
|
|
||||||
@prawn_document.repeat(2..) do
|
@prawn_document.repeat(2..) do
|
||||||
@prawn_document.text_box "<b>#{params.report.name}</b>", at: [ 50, 777 ], inline_format: true, width: 300
|
@prawn_document.text_box "<b>#{params.report.name}</b>", at: [ 50, 777 ], inline_format: true, width: 300
|
||||||
# @prawn_document.text_box "#{I18n.l params.report.updated_at.to_date, format: :long}", at: [ 0, 777 ], inline_format: true, width: 532, align: :right
|
|
||||||
@prawn_document.bounding_box([0, 766], width: 532) do
|
@prawn_document.bounding_box([0, 766], width: 532) do
|
||||||
hr
|
hr
|
||||||
end
|
end
|
||||||
|
|
@ -109,26 +108,6 @@ module PdfDocuments
|
||||||
logo
|
logo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@prawn_document.repeat(2..) do
|
|
||||||
# @prawn_document.bounding_box([ 0, 790 ], width: 200) do
|
|
||||||
# logo
|
|
||||||
# end
|
|
||||||
# @prawn_document.formatted_text_box([ {
|
|
||||||
# text: "Dieses Dokument wurd am #{Time.current.strftime('%d %B %Y')} um #{Time.current.strftime('%H:%M:%S')} erstellt.",
|
|
||||||
# size: 8,
|
|
||||||
# align: :right
|
|
||||||
# } ],
|
|
||||||
# at: [ 0, -15 ],
|
|
||||||
# width: 200
|
|
||||||
# )
|
|
||||||
# @prawn_document.text_box "#{I18n.l params.report.updated_at.to_date, format: :long}", at: [ 0, 777 ], inline_format: true, width: 532, align: :right
|
|
||||||
@prawn_document.font_size(8) do
|
|
||||||
# @prawn_document.draw_text("Dokument erstellt am #{Time.current.strftime('%d %B %Y')} um #{Time.current.strftime('%H:%M:%S')}", at: [ 0, -15 ])
|
|
||||||
end
|
|
||||||
# @prawn_document.bounding_box([0, 0], width: 532) do
|
|
||||||
# hr
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
||||||
x = params
|
x = params
|
||||||
p = @pages
|
p = @pages
|
||||||
|
|
@ -179,7 +158,7 @@ module PdfDocuments
|
||||||
heading4("Protokollnummer")
|
heading4("Protokollnummer")
|
||||||
text(success_criterion.number)
|
text(success_criterion.number)
|
||||||
heading4("WCAG")
|
heading4("WCAG")
|
||||||
text("<link href='#{success_criterion.check.external_url}'>#{success_criterion.check.external_number}</link>'", inline_format: true)
|
text("<link href='#{success_criterion.check.external_url}'>#{success_criterion.check.external_number}</link>", inline_format: true)
|
||||||
move_down(10)
|
move_down(10)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
|
h2 Kommentar bearbeiten
|
||||||
= bootstrap_form_with(model: @success_criterion.persisted? ? @success_criterion : [:element, @success_criterion], data: { controller: "unsaved-changes" }) do |form|
|
= bootstrap_form_with(model: @success_criterion.persisted? ? @success_criterion : [:element, @success_criterion], data: { controller: "unsaved-changes" }) do |form|
|
||||||
= form.rich_text_area :test_comment
|
= form.rich_text_area :test_comment, hide_label: true
|
||||||
= form.submit class: "btn btn-primary"
|
= form.submit class: "btn btn-primary"
|
||||||
- unless modal?
|
- unless modal?
|
||||||
=< link_to "Abbrechen", @success_criterion.persisted? ? @success_criterion : @success_criterion.element, class: "btn btn-outline-secondary"
|
=< link_to "Abbrechen", @success_criterion.persisted? ? @success_criterion : @success_criterion.element, class: "btn btn-outline-secondary"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue