diff --git a/src/Form/OfferFilterFormType.php b/src/Form/OfferFilterFormType.php index 92ecb96..45cfff7 100644 --- a/src/Form/OfferFilterFormType.php +++ b/src/Form/OfferFilterFormType.php @@ -6,6 +6,7 @@ use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\NumberType; +use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\OptionsResolver\OptionsResolver; class OfferFilterFormType extends AbstractType @@ -19,6 +20,7 @@ class OfferFilterFormType extends AbstractType ->add('distance', NumberType::class, [ 'label' => 'Distance', ]) + ->add('Apply', SubmitType::class) ; } diff --git a/templates/offer/index.html.twig b/templates/offer/index.html.twig index ab99fa2..68476c0 100644 --- a/templates/offer/index.html.twig +++ b/templates/offer/index.html.twig @@ -15,21 +15,14 @@ {% endfor %} -