Merge pull request #10092 from mfo/US/fix-dossier-vide
correctif(dossier.pdf): ETQ usager, je souhaite pouvoir visualiser un formularie au format PDF
This commit is contained in:
commit
d9b6db8ebc
1 changed files with 4 additions and 5 deletions
|
@ -186,12 +186,11 @@ def add_champs(pdf, champs)
|
||||||
champs.each do |champ|
|
champs.each do |champ|
|
||||||
if champ.type == 'Champs::RepetitionChamp'
|
if champ.type == 'Champs::RepetitionChamp'
|
||||||
add_libelle(pdf, champ)
|
add_libelle(pdf, champ)
|
||||||
3.times { champ.add_row(champ.type_de_champ.revision) }
|
added_champs = champ.add_row(champ.type_de_champ.revision)
|
||||||
|
|
||||||
3.times do
|
3.times do
|
||||||
champ.rows.each do |row|
|
added_champs.each do |champ|
|
||||||
row.each do |inner_champ|
|
render_single_champ(pdf, champ)
|
||||||
render_single_champ(pdf, inner_champ)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue