Merge pull request #951 from sgmap/fix-908

Fix #908
This commit is contained in:
gregoirenovel 2017-11-20 17:10:30 +01:00 committed by GitHub
commit 8df9462d1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,11 +1,20 @@
%table.table.vertical.dossier-champs
%tbody
- champs.each do |c|
- champs.reject { |c| c.type_champ == "explication" }.each do |c|
%tr
- if c.type_champ == "header_section"
- case c.type_champ
- when "header_section"
%th.header-section{ colspan: 2 }
= c.libelle
- elsif c.type_champ != "explication"
- when "multiple_drop_down_list"
%th.libelle
= "#{c.libelle} :"
%td.rich-text
%ul
- c.value.split(", ").each do |item|
%li
= item
- else
%th.libelle
= "#{c.libelle} :"
%td.rich-text