mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-28 13:06:13 +00:00
Adjust display of gender in twig templates
This commit is contained in:
parent
d9dc2d1f4e
commit
47d954fe9f
@ -73,7 +73,7 @@ This view should receive those arguments:
|
||||
{% endfor %}
|
||||
|
||||
<dt>{{ 'Gender'|trans }} :</dt>
|
||||
<dd>{{ ( person.gender|default('Not given'))|trans }}</dd>
|
||||
<dd>{{ ( person.gender.label|localize_translatable_string ) }}</dd>
|
||||
|
||||
</dl>
|
||||
</figure>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<ul>
|
||||
<li><b>{{ 'gender'|trans }}</b>:
|
||||
{{ person.gender|trans }}</li>
|
||||
{{ person.gender.label|localize_translatable_string }}</li>
|
||||
<li><b>{{ 'maritalStatus'|trans }}</b>:
|
||||
{% if person.maritalStatus %}{{ person.maritalStatus.name|localize_translatable_string }}{% endif %}</li>
|
||||
<li><b>{{ 'birthdate'|trans }}</b>:
|
||||
|
Loading…
x
Reference in New Issue
Block a user