Allow ceating and editing snips
This commit is contained in:
@ -4,6 +4,7 @@ namespace App\Form;
|
||||
|
||||
use App\Entity\Snip;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
@ -13,8 +14,10 @@ class SnipType extends AbstractType
|
||||
{
|
||||
$builder
|
||||
->add('name')
|
||||
->add('createdAt')
|
||||
->add('createdBy')
|
||||
->add('content', TextareaType::class, [
|
||||
'attr' => ['rows' => 20],
|
||||
'mapped' => false,
|
||||
])
|
||||
;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user