cours-ending/src/CoursEndingBundle/Form/Type/FormType.php
2016-03-21 09:32:19 +01:00

41 lines
868 B
PHP

<?php
namespace CoursEndingBundle\Form\Type;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Propel\Bundle\PropelBundle\Form\BaseAbstractType;
class FormType extends BaseAbstractType
{
protected $options = array(
'name' => 'form',
'allow_extra_fields' => true,
'data_class' => 'CoursEndingBundle\Model\Form',
);
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add(
'id',
TextType::class,
array(
)
);
$builder->add(
'label',
TextType::class,
array(
)
);
$builder->add(
'active',
TextType::class,
array(
)
);
}
}