Extract the textarea champ view in a partial

This commit is contained in:
gregoirenovel 2018-12-28 16:23:49 +01:00
parent e6e67dab35
commit c1ebae3ee8
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
= simple_format(champ.to_s)

View file

@ -29,7 +29,7 @@
= "#{c.libelle} :"
%td.rich-text
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
= simple_format(c.to_s)
= render partial: "shared/champs/text_area/show", locals: { champ: c }
- when TypeDeChamp.type_champs.fetch(:siret)
%th.libelle
= "#{c.libelle} :"