mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	Adjust display of gender in twig templates
This commit is contained in:
		| @@ -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>: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user