format motivation in dossier overview

This commit is contained in:
Christophe Robillard 2023-12-08 17:40:22 +01:00
parent 269e7e1432
commit 7f0ece3729
2 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
- if dossier.motivation.present?
= render Dossiers::RowShowComponent.new(label: "Motivation") do |c|
- c.with_value do
= dossier.motivation
= simple_format dossier.motivation
- if dossier.attestation.present?
= render Dossiers::RowShowComponent.new(label: "Attestation") do |c|

View file

@ -62,7 +62,7 @@
- if dossier.motivation.present?
%h3= t('views.users.dossiers.show.status_overview.accepte_motivation')
%blockquote= dossier.motivation
%blockquote= simple_format(dossier.motivation)
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
@ -81,7 +81,7 @@
- if dossier.motivation.present?
%h3= t('views.users.dossiers.show.status_overview.refuse_motivation')
%blockquote= dossier.motivation
%blockquote= simple_format(dossier.motivation)
= render partial: 'users/dossiers/show/download_justificatif', locals: { dossier: dossier }
.action
@ -97,4 +97,4 @@
- if dossier.motivation.present?
%h3= t('views.users.dossiers.show.status_overview.sans_suite_motivation')
%blockquote= dossier.motivation
%blockquote= simple_format(dossier.motivation)