Displaying & edit marital status

This commit is contained in:
Marc Ducobu
2015-08-12 17:59:12 +02:00
parent 98e1fb663b
commit 21676a20b2
6 changed files with 101 additions and 53 deletions

View File

@@ -24,9 +24,7 @@ namespace Chill\PersonBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Chill\PersonBundle\Form\Type\CivilType;
use Chill\PersonBundle\Form\Type\GenderType;
use CL\BelgianNationalNumberBundle\Form\BelgianNationalNumberType;
class PersonType extends AbstractType
{
@@ -57,6 +55,9 @@ class PersonType extends AbstractType
'required' => false,
'multiple' => true
))
->add('maritalStatus', 'select2_chill_marital_status', array(
'required' => false
))
;
if($options['cFGroup']) {
@@ -65,7 +66,6 @@ class PersonType extends AbstractType
array('attr' => array('class' => 'cf-fields'), 'group' => $options['cFGroup']))
;
}
}
/**