Do not crash if the user has no DOB

Related to #986
This commit is contained in:
gregoirenovel 2017-11-23 15:24:34 +01:00
parent 0ae4536369
commit b6e0b40133

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")