[Fix #1614] Show newlines for textarea champs
This commit is contained in:
parent
a02e749c03
commit
6c669ccc39
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