Take Null value for gender into account and fix OnTheFly makeFetch

This commit is contained in:
2024-10-22 14:39:17 +02:00
parent 30b66d5806
commit 588f02cdf4
6 changed files with 17 additions and 13 deletions

View File

@@ -73,8 +73,11 @@ This view should receive those arguments:
{% endfor %}
<dt>{{ 'Gender'|trans }}&nbsp;:</dt>
<dd>{{ ( person.gender.label|localize_translatable_string ) }}</dd>
{% if person.gender %}
<dd>{{ ( person.gender.label|localize_translatable_string ) }}</dd>
{% else %}
<dd>{{ 'gender.not defined'|trans }}</dd>
{% endif %}
</dl>
</figure>
</div>