Made document editing possible
This commit is contained in:
27
src/KekRozsak/FrontBundle/Form/Type/DocumentType.php
Normal file
27
src/KekRozsak/FrontBundle/Form/Type/DocumentType.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace KekRozsak\FrontBundle\Form\Type;
|
||||
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
class DocumentType extends AbstractType
|
||||
{
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder->add('title', null, array(
|
||||
'label' => 'A dokumentum címe',
|
||||
));
|
||||
|
||||
$builder->add('content', 'ckeditor', array(
|
||||
'label' => ' ',
|
||||
));
|
||||
|
||||
/* TODO: possibility to add to other groups! */
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'document';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user