41 lines
868 B
PHP
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(
|
|
)
|
|
);
|
|
}
|
|
}
|