mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Adjust display of gender in twig templates
This commit is contained in:
parent
3eeb105913
commit
23e7f4a120
@ -73,7 +73,7 @@ This view should receive those arguments:
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<dt>{{ 'Gender'|trans }} :</dt>
|
<dt>{{ 'Gender'|trans }} :</dt>
|
||||||
<dd>{{ ( person.gender|default('Not given'))|trans }}</dd>
|
<dd>{{ ( person.gender.label|localize_translatable_string ) }}</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
</figure>
|
</figure>
|
||||||
|
@ -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>:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user