Merge pull request #11147 from colinux/pdf-include-geoarea-desc

ETQ instructeur, la description d'une zone du champ carte est inclus dans le PDF
This commit is contained in:
Colin Darie 2024-12-19 08:28:44 +00:00 committed by GitHub
commit 563bcd85d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,6 +165,13 @@ def add_single_champ(pdf, champ)
pdf.indent(default_margin) do
champ.geo_areas.each do |area|
pdf.text "- #{clean_string(area.label)}"
if area.description.present?
pdf.indent(8) do
pdf.pad_bottom(4) do
pdf.text clean_string(area.description)
end
end
end
end
end
end