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-07-22 17:38:00 +00:00
|
|
|
|
2012-08-16 13:52:41 +00:00
|
|
|
$builder->add('content', 'ckeditor', array(
|
|
|
|
'label' => ' ',
|
|
|
|
)
|
|
|
|
);
|
2012-07-22 17:38:00 +00:00
|
|
|
|
2012-08-16 13:52:41 +00:00
|
|
|
// TODO: possibility to add to other groups!
|
|
|
|
}
|
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
|
|
|
}
|