Merge pull request #1622 from betagouv/frederic/fix_1614-textarea_newlines

Frederic/fix 1614 textarea newlines
This commit is contained in:
Frederic Merizen 2018-03-15 13:08:07 +01:00 committed by GitHub
commit 521d70e43a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -50,6 +50,8 @@
- pj = champ.piece_justificative_file
%a{ href: url_for(pj), target: '_blank' }
= pj.filename.to_s
- elsif champ.type_champ == 'textarea'
= simple_format(champ.decorate.value)
- else
= sanitize(champ.decorate.value)

View file

@ -40,6 +40,12 @@
= pj.filename.to_s
- else
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
%th.libelle
= "#{c.libelle} :"