Merge pull request #1622 from betagouv/frederic/fix_1614-textarea_newlines
Frederic/fix 1614 textarea newlines
This commit is contained in:
commit
521d70e43a
2 changed files with 8 additions and 0 deletions
|
@ -50,6 +50,8 @@
|
||||||
- pj = champ.piece_justificative_file
|
- pj = champ.piece_justificative_file
|
||||||
%a{ href: url_for(pj), target: '_blank' }
|
%a{ href: url_for(pj), target: '_blank' }
|
||||||
= pj.filename.to_s
|
= pj.filename.to_s
|
||||||
|
- elsif champ.type_champ == 'textarea'
|
||||||
|
= simple_format(champ.decorate.value)
|
||||||
- else
|
- else
|
||||||
= sanitize(champ.decorate.value)
|
= sanitize(champ.decorate.value)
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,12 @@
|
||||||
= pj.filename.to_s
|
= pj.filename.to_s
|
||||||
- else
|
- else
|
||||||
Pièce justificative non fournie
|
Pièce justificative non fournie
|
||||||
|
- when "textarea"
|
||||||
|
%th.libelle
|
||||||
|
= "#{c.libelle} :"
|
||||||
|
%td.rich-text
|
||||||
|
%span{ class: highlight_if_unseen_class(demande_seen_at, c.updated_at) }
|
||||||
|
= simple_format(c.value)
|
||||||
- else
|
- else
|
||||||
%th.libelle
|
%th.libelle
|
||||||
= "#{c.libelle} :"
|
= "#{c.libelle} :"
|
||||||
|
|
Loading…
Reference in a new issue