2012-07-22 17:38:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace KekRozsak\FrontBundle\Form\Type;
|
|
|
|
|
|
|
|
use Symfony\Component\Form\AbstractType;
|
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
|
|
|
|
|
|
class DocumentType extends AbstractType
|
|
|
|
{
|
2012-08-16 13:52:41 +00:00
|
|
|
public function buildForm(FormBuilderInterface $builder, array $options)
|
|
|
|
{
|
|
|
|
$builder->add('title', null, array(
|
|
|
|
'label' => 'A dokumentum címe',
|
|
|
|
)
|
2012-09-13 10:08:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
->add('groups', null, array(
|
|
|
|
'label' => 'Csoportok',
|
|
|
|
'property' => 'name',
|
|
|
|
'required' => true,
|
|
|
|
)
|
|
|
|
)
|
2012-07-22 17:38:00 +00:00
|
|
|
|
2012-09-13 10:08:29 +00:00
|
|
|
->add('content', 'ckeditor', array(
|
2012-08-16 13:52:41 +00:00
|
|
|
'label' => ' ',
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2012-07-22 17:38:00 +00:00
|
|
|
|
2012-08-16 13:52:41 +00:00
|
|
|
public function getName()
|
|
|
|
{
|
|
|
|
return 'document';
|
|
|
|
}
|
2012-07-22 17:38:00 +00:00
|
|
|
}
|