[person details] add an "empty" statement on place of birth

This commit is contained in:
Julien Fastré 2020-07-01 17:34:00 +02:00
parent 98b9f5d2d7
commit 373a6a2dc7
2 changed files with 6 additions and 1 deletions

View File

@ -111,3 +111,4 @@ Master branch
- [Accompanying period list] Fix period label in list
- [Accompanying period list] Fix label of closing motive
- [Person details] Add an "empty" statement on place of birth

View File

@ -96,7 +96,11 @@ This view should receive those arguments:
{%- if chill_person.fields.place_of_birth == 'visible' -%}
<dt>{{ 'Place of birth'|trans }}&nbsp;:</dt>
<dd>{{ person.placeOfBirth }}</dd>
{% if person.placeOfBirth is not empty %}
<dd>{{ person.placeOfBirth }}</dd>
{% else %}
<dd><span class="chill-no-data-statement">{{ 'Not given'|trans }}</span></dd>
{% endif %}
{%- endif -%}
{%- if chill_person.fields.country_of_birth == 'visible' -%}
<dt>{{ 'Country of birth'|trans }}&nbsp;:</dt>