Extract multiple_drop_down_list champ view in a partial

This commit is contained in:
gregoirenovel 2018-12-28 16:22:07 +01:00
parent 81d6e193e5
commit e6e67dab35
2 changed files with 6 additions and 5 deletions

View file

@ -0,0 +1,5 @@
- if champ.to_s.present?
%ul
- champ.to_s.split(", ").each do |item|
%li
= item

View file

@ -11,11 +11,7 @@
= "#{c.libelle} :"
%td.rich-text
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
- if c.to_s.present?
%ul
- c.to_s.split(", ").each do |item|
%li
= item
= render partial: "shared/champs/multiple_drop_down_list/show", locals: { champ: c }
- when TypeDeChamp.type_champs.fetch(:dossier_link)
%th.libelle
= "#{c.libelle} :"