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

22 lines
651 B
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

%table.table.vertical.dossier-champs
%tbody
- champs.reject { |c| c.type_champ == "explication" }.each do |c|
%tr
- case c.type_champ
- when "header_section"
%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
= "#{c.libelle} :"
%td.rich-text
= sanitize(c.value)