choice of user in form

This commit is contained in:
Marc Ducobu
2014-11-12 12:49:02 +01:00
parent b91776c594
commit 88510942e5
2 changed files with 6 additions and 5 deletions

View File

@@ -36,9 +36,12 @@ class ReportType extends AbstractType
$entityManager = $options['em'];
$builder
->add('date', 'date', array('required' => false, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
->add('user')
->add('date', 'date',
array('required' => false, 'widget' => 'single_text', 'format' => 'dd-MM-yyyy'))
->add('scope')
->add('cFData', 'custom_field', array('attr' => array('class' => 'only-label'), 'group' => $options['cFGroup']))
->add('cFData', 'custom_field',
array('attr' => array('class' => 'only-label'), 'group' => $options['cFGroup']))
;
}