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} :"
|
= "#{c.libelle} :"
|
||||||
%td.rich-text
|
%td.rich-text
|
||||||
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||||
- if c.to_s.present?
|
= render partial: "shared/champs/multiple_drop_down_list/show", locals: { champ: c }
|
||||||
%ul
|
|
||||||
- c.to_s.split(", ").each do |item|
|
|
||||||
%li
|
|
||||||
= item
|
|
||||||
- when TypeDeChamp.type_champs.fetch(:dossier_link)
|
- when TypeDeChamp.type_champs.fetch(:dossier_link)
|
||||||
%th.libelle
|
%th.libelle
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
|
|
Loading…
Add table
Reference in a new issue