Esempio n. 1
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('stateID', 'choice', array('choices' => Etude::getStateIDChoice(), 'label' => 'Etat de l\'Étude', 'required' => true))->add('auditDate', 'genemu_jquerydate', array('label' => 'Audité le', 'format' => 'd/MM/y', 'required' => false, 'widget' => 'single_text'))->add('auditType', new AuditType(), array('label' => 'Type d\'audit', 'required' => false))->add('stateDescription', 'textarea', array('label' => 'Problèmes', 'required' => false, 'attr' => array('cols' => '100%', 'rows' => 5)))->add('ap', new DocTypeSuiviType(), array('label' => 'Avant-Projet', 'data_class' => 'Mgate\\SuiviBundle\\Entity\\Ap'))->add('cc', new DocTypeSuiviType(), array('label' => 'Convention Client', 'data_class' => 'Mgate\\SuiviBundle\\Entity\\Cc'));
     $builder->add('missions', 'collection', array('type' => new DocTypeSuiviType(), 'allow_add' => true, 'allow_delete' => true, 'prototype' => true, 'by_reference' => false));
     $builder->add('pvis', 'collection', array('type' => new DocTypeSuiviType(), 'allow_add' => true, 'allow_delete' => true, 'prototype' => true, 'by_reference' => false));
     $builder->add('avs', 'collection', array('type' => new DocTypeSuiviType(), 'allow_add' => true, 'allow_delete' => true, 'prototype' => true, 'by_reference' => false));
     $builder->add('pvr', new DocTypeSuiviType(), array('label' => 'PVR', 'data_class' => 'Mgate\\SuiviBundle\\Entity\\ProcesVerbal'));
 }