From 0360ee0a44fba9c19a80f055dad845256427d0da Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sat, 15 Jan 2022 20:50:54 +0100 Subject: [PATCH] update crud of posts (filters) --- src/Form/Blog/Filter/PostFilterType.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/Form/Blog/Filter/PostFilterType.php b/src/Form/Blog/Filter/PostFilterType.php index 47c8e2d..587ab6d 100644 --- a/src/Form/Blog/Filter/PostFilterType.php +++ b/src/Form/Blog/Filter/PostFilterType.php @@ -15,6 +15,19 @@ class PostFilterType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { + $builder->add( + 'id', + TextType::class, + [ + 'label' => 'ID', + 'required' => false, + 'attr' => [ + ], + 'constraints' => [ + ], + ] + ); + $builder->add( 'title', TextType::class, @@ -86,7 +99,7 @@ class PostFilterType extends AbstractType ChoiceType::class, [ 'label' => 'Quick', - 'required' => false, + 'required' => true, 'choices' => [ 'Anyway' => null, 'Yes' => true,