mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
add indeterminate gender
This commit is contained in:
parent
5ca6a9939c
commit
b4c22bf247
@ -60,6 +60,7 @@ class Person implements HasCenterInterface {
|
||||
|
||||
const MALE_GENDER = 'man';
|
||||
const FEMALE_GENDER = 'woman';
|
||||
const BOTH_GENDER = 'both';
|
||||
|
||||
/** @var \Chill\PersonBundle\Entity\MaritalStatus The marital status of the person */
|
||||
private $maritalStatus;
|
||||
|
@ -23,7 +23,8 @@ class GenderType extends AbstractType {
|
||||
|
||||
$a = array(
|
||||
Person::MALE_GENDER => Person::MALE_GENDER,
|
||||
Person::FEMALE_GENDER => Person::FEMALE_GENDER
|
||||
Person::FEMALE_GENDER => Person::FEMALE_GENDER,
|
||||
Person::BOTH_GENDER => Person::BOTH_GENDER
|
||||
);
|
||||
|
||||
$resolver->setDefaults(array(
|
||||
|
@ -47,6 +47,8 @@ man: Homme
|
||||
woman: Femme
|
||||
Man: Homme
|
||||
Woman: Femme
|
||||
both: Indéterminé
|
||||
Both: Indéterminé
|
||||
Divorced: Divorcé(e)
|
||||
Separated: Séparé(e)
|
||||
Widow: Veuf(ve)
|
||||
|
@ -45,7 +45,9 @@
|
||||
<i class="fa fa-{% spaceless %}
|
||||
{% if person.gender == "woman" %}
|
||||
female
|
||||
{% else %}
|
||||
{% elseif person.gender == "both" %}
|
||||
neuter
|
||||
{% else %}
|
||||
male
|
||||
{% endif %}
|
||||
{% endspaceless %}"></i>
|
||||
|
Loading…
x
Reference in New Issue
Block a user