Merge pull request #987 from sgmap/handle-no-dob

Do not crash if the user has no DOB
This commit is contained in:
gregoirenovel 2017-11-23 16:06:18 +01:00 committed by GitHub
commit 19fbae6a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@
%tr %tr
%th Nom : %th Nom :
%td= individual.nom %td= individual.nom
%tr - if individual.birthdate.present?
%th Date de naissance : %tr
%td= Date.parse(individual.birthdate).strftime("%d/%m/%Y") %th Date de naissance :
%td= Date.parse(individual.birthdate).strftime("%d/%m/%Y")