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
%th Nom :
%td= individual.nom
%tr
%th Date de naissance :
%td= Date.parse(individual.birthdate).strftime("%d/%m/%Y")
- if individual.birthdate.present?
%tr
%th Date de naissance :
%td= Date.parse(individual.birthdate).strftime("%d/%m/%Y")