Extract multiple_drop_down_list champ view in a partial
This commit is contained in:
parent
81d6e193e5
commit
e6e67dab35
2 changed files with 6 additions and 5 deletions
|
@ -0,0 +1,5 @@
|
|||
- if champ.to_s.present?
|
||||
%ul
|
||||
- champ.to_s.split(", ").each do |item|
|
||||
%li
|
||||
= item
|
|
@ -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} :"
|
||||
|
|
Loading…
Add table
Reference in a new issue