Adjust display of gender in twig templates

This commit is contained in:
Julie Lenaerts 2024-10-01 12:16:16 +02:00
parent 3eeb105913
commit 23e7f4a120
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ This view should receive those arguments:
{% endfor %} {% endfor %}
<dt>{{ 'Gender'|trans }}&nbsp;:</dt> <dt>{{ 'Gender'|trans }}&nbsp;:</dt>
<dd>{{ ( person.gender|default('Not given'))|trans }}</dd> <dd>{{ ( person.gender.label|localize_translatable_string ) }}</dd>
</dl> </dl>
</figure> </figure>

View File

@ -2,7 +2,7 @@
<ul> <ul>
<li><b>{{ 'gender'|trans }}</b>: <li><b>{{ 'gender'|trans }}</b>:
{{ person.gender|trans }}</li> {{ person.gender.label|localize_translatable_string }}</li>
<li><b>{{ 'maritalStatus'|trans }}</b>: <li><b>{{ 'maritalStatus'|trans }}</b>:
{% if person.maritalStatus %}{{ person.maritalStatus.name|localize_translatable_string }}{% endif %}</li> {% if person.maritalStatus %}{{ person.maritalStatus.name|localize_translatable_string }}{% endif %}</li>
<li><b>{{ 'birthdate'|trans }}</b>: <li><b>{{ 'birthdate'|trans }}</b>: