add indeterminate gender

This commit is contained in:
Julien Fastré 2018-07-05 14:02:14 +02:00
parent 5ca6a9939c
commit b4c22bf247
4 changed files with 8 additions and 2 deletions

View File

@ -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;

View File

@ -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(

View File

@ -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)

View File

@ -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>