diff --git a/app/views/shared/champs/textarea/_show.html.haml b/app/views/shared/champs/textarea/_show.html.haml new file mode 100644 index 000000000..cd7684777 --- /dev/null +++ b/app/views/shared/champs/textarea/_show.html.haml @@ -0,0 +1 @@ += simple_format(champ.to_s) diff --git a/app/views/shared/dossiers/_champs.html.haml b/app/views/shared/dossiers/_champs.html.haml index 566ee19a9..491361855 100644 --- a/app/views/shared/dossiers/_champs.html.haml +++ b/app/views/shared/dossiers/_champs.html.haml @@ -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} :"