Make snip description optional
This commit is contained in:
parent
39f6aaea23
commit
797d7a2e8f
@ -6,7 +6,6 @@ use App\Entity\Snip;
|
|||||||
use App\Service\SnipParser\ParserFactory;
|
use App\Service\SnipParser\ParserFactory;
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
|
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||||
use Symfony\Component\Form\FormBuilderInterface;
|
use Symfony\Component\Form\FormBuilderInterface;
|
||||||
@ -36,6 +35,7 @@ class SnipType extends AbstractType
|
|||||||
->add('contentName', TextType::class, [
|
->add('contentName', TextType::class, [
|
||||||
'label' => 'Change description (optional)',
|
'label' => 'Change description (optional)',
|
||||||
'mapped' => false,
|
'mapped' => false,
|
||||||
|
'required' => false,
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user