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:
commit
563bcd85d8
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue