allow layout to print people without dateOfBirth

This commit is contained in:
2013-12-19 17:59:22 +01:00
parent 9f3cf26c13
commit c66270f1fb
2 changed files with 12 additions and 3 deletions

View File

@@ -45,7 +45,8 @@ This view should receive those arguments:
<dl>
<dt class="inline">{{ 'views.Person.view.dateOfBirth'|trans }}</dt>
<dd>{{ person.dateOfBirth.format(date_format) }}</dd>
<dd>{{ person.dateOfBirth.format(date_format)
|default( 'person.without_date_of_birth'|trans ) }}</dd>
<dt class="inline">{{ 'views.Person.view.placeOfBirth'|trans }}</dt>