[fix #3710] date with letter

Co-Authored-By: simon lehericey <mail@simon.lehericey.net>
This commit is contained in:
pedong 2019-04-10 15:49:13 +02:00 committed by Pierre de La Morinerie
parent d11e246112
commit abcd58c35d
7 changed files with 62 additions and 9 deletions

View file

@ -30,6 +30,10 @@
= render partial: "shared/champs/siret/show", locals: { champ: c, profile: profile }
- when TypeDeChamp.type_champs.fetch(:textarea)
= render partial: "shared/champs/textarea/show", locals: { champ: c }
- when TypeDeChamp.type_champs.fetch(:date)
= try_format_date(c.to_s)
- when TypeDeChamp.type_champs.fetch(:datetime)
= try_format_datetime(c.to_s)
- else
= sanitize(c.to_s)