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