Allow ceating and editing snips

This commit is contained in:
Tim
2023-04-04 00:36:35 +02:00
parent 921dcf1e97
commit dce2fbff42
7 changed files with 75 additions and 32 deletions

View File

@ -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,
])
;
}