Extract the textarea champ view in a partial
This commit is contained in:
parent
e6e67dab35
commit
c1ebae3ee8
2 changed files with 2 additions and 1 deletions
1
app/views/shared/champs/textarea/_show.html.haml
Normal file
1
app/views/shared/champs/textarea/_show.html.haml
Normal file
|
@ -0,0 +1 @@
|
|||
= simple_format(champ.to_s)
|
|
@ -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} :"
|
||||
|
|
Loading…
Reference in a new issue