demarches-normaliennes/app/views/new_gestionnaire/dossiers/_champs.html.haml

23 lines
651 B
Text
Raw Normal View History

%table.table.vertical.dossier-champs
2017-07-11 16:50:29 +02:00
%tbody
- champs.reject { |c| c.type_champ == "explication" }.each do |c|
2017-07-11 16:50:29 +02:00
%tr
- case c.type_champ
- when "header_section"
2017-07-11 16:50:29 +02:00
%th.header-section{ colspan: 2 }
= c.libelle
- when "multiple_drop_down_list"
%th.libelle
= "#{c.libelle} :"
%td.rich-text
- if c.value.present?
%ul
- c.value.split(", ").each do |item|
%li
= item
- else
%th.libelle
2017-07-11 16:50:29 +02:00
= "#{c.libelle} :"
%td.rich-text
2017-10-13 14:54:38 +02:00
= sanitize(c.value)