cosmetics
Some checks failed
/ Run tests (push) Successful in 2m3s
/ Run system tests (push) Failing after 2m22s
/ Build, push and deploy image (push) Successful in 1m38s

This commit is contained in:
david 2024-11-24 03:58:28 +01:00
parent e1dfb14d4d
commit 650bec3f57
2 changed files with 3 additions and 23 deletions

View file

@ -101,7 +101,6 @@ module PdfDocuments
@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 "#{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
hr
end
@ -109,26 +108,6 @@ module PdfDocuments
logo
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
p = @pages
@ -179,7 +158,7 @@ module PdfDocuments
heading4("Protokollnummer")
text(success_criterion.number)
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)
end
end

View file

@ -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|
= form.rich_text_area :test_comment
= form.rich_text_area :test_comment, hide_label: true
= form.submit class: "btn btn-primary"
- unless modal?
=< link_to "Abbrechen", @success_criterion.persisted? ? @success_criterion : @success_criterion.element, class: "btn btn-outline-secondary"