Commit b4c22bf2 authored by Julien Fastré's avatar Julien Fastré

add indeterminate gender

parent 5ca6a993
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment